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

Lattice-Boltzmann coupled models for advection–diffusion flow on a wide range of Péclet numbers

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

기본 정보

저자
  1. Davide Dapelo — Faculty of Engineering and Informatics, University of Bradford, Bradford BD7 1DP, United Kingdom
  2. Stephan Simonis — Institute for Applied and Numerical Mathematics, Karlsruhe Institute of Technology (KIT), 76131 Karlsruhe, Germany|||Lattice Boltzmann Research Group, Karlsruhe Institute of Technology, Karlsruhe, Germany
  3. Mathias J. Krause — Institute for Applied and Numerical Mathematics, Karlsruhe Institute of Technology (KIT), 76131 Karlsruhe, Germany|||Lattice Boltzmann Research Group, Karlsruhe Institute of Technology, Karlsruhe, Germany
  4. John Bridgeman — Faculty of Engineering and Informatics, University of Bradford, Bradford BD7 1DP, United Kingdom
DOI
10.1016/j.jocs.2021.101363
저널
Journal of Computational Science
발행년도
2021
발행기관
Elsevier BV
피인용수
25
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1016/j.jocs.2021.101363
토픽
Heat and Mass Transfer in Porous Media
OpenAlex ID
W3143022815

평가 내용

관련도
간접 관련
사업분야
수소연료전지 · (7) MEA(막전극접합체)
부 분야
(5) 연료전지용 수분제어장치(가습기), (6) PEM(고분자전해질막)
R&D 측면
분석·모델링
확신도
0.70
근거 용어
Lattice-Boltzmann, advection–diffusion, numerical modelling, computational fluid dynamics, fluid-flow problems
판단 근거
이 논문은 유체 내 물질 전달(advection-diffusion)을 시뮬레이션하기 위한 격자 볼츠만(Lattice-Boltzmann) 및 유한차분법(Finite-difference) 수치 모델링 기법을 다룹니다. 이는 수소연료전지(PEMFC)의 핵심 요소인 가습기 내 수분 이동이나 전해질막 내 이온 전도/물질 전달 현상을 해석하는 CFD(전산유체역학) 연구에 간접적으로 활용될 수 있습니다.
R&D 활용 포인트
PEMFC의 막가습기(5) 내 수증기 투과 및 확산 거동, 또는 전해질막(6) 내 이온/물질 전달 현상을 정밀하게 예측하기 위한 수치 해석 모델 및 시뮬레이션 알고리즘 고도화에 활용 가능합니다.
평가 입력
본문 67,286자 중 30,032자 발췌

초록

Traditional Lattice-Boltzmann modelling of advection–diffusion flow is affected by numerical instability if the advective term becomes dominant over the diffusive (i.e., high-Péclet flow). To overcome the problem, two 3D one-way coupled models are proposed. In a traditional model, a Lattice-Boltzmann Navier–Stokes solver is coupled to a Lattice-Boltzmann advection–diffusion model. In a novel model, the Lattice-Boltzmann Navier–Stokes solver is coupled to an explicit finite-difference algorithm for advection–diffusion. The finite-difference algorithm also includes a novel approach to mitigate the numerical diffusivity connected with the upwind differentiation scheme. The models are validated using two non-trivial benchmarks, which includes discontinuous initial conditions and the case Pe$_{g}$->$\infty$ for the first time, where Pe$_{g}$ is the grid Péclet number. The evaluation of Pe$_{g}$ alongside Pe is discussed. Accuracy, stability and the order of convergence are assessed for a wide range of Péclet numbers. Recommendations are then given as to which model to select depending on the value Pe$_{g}$ - in particular, it is shown that the coupled finite-difference/Lattice-Boltzmann provide stable solutions in the case Pe->$\infty$, Pe$_{g}$->$\infty$

본문 67,286자

본문 펼치기
[Journal of Computational Science 51 (2021) 101363](https://doi.org/10.1016/j.jocs.2021.101363) Contents lists available at [ScienceDirect](http://www.elsevier.com/locate/jocs) # Journal of Computational Science journal homepage: [www.elsevier.com/locate/jocs](http://www.elsevier.com/locate/jocs) ## Lattice-Boltzmann coupled models for advection–diffusion flow on a wide range of Péclet numbers Davide Dapelo <sup>a,∗</sup>, Stephan Simonis <sup>b,c</sup>, Mathias J. Krause <sup>b,c</sup>, John Bridgeman <sup>a</sup> a _Faculty_ _of_ _Engineering_ _and_ _Informatics,_ _University_ _of_ _Bradford,_ _Bradford_ _BD7_ _1DP,_ _United_ _Kingdom_ b _Lattice_ _Boltzmann_ _Research_ _Group,_ _Karlsruhe_ _Institute_ _of_ _Technology,_ _Karlsruhe,_ _Germany_ c _Institute_ _for_ _Applied_ _and_ _Numerical_ _Mathematics,_ _Karlsruhe_ _Institute_ _of_ _Technology_ _(KIT),_ _76131_ _Karlsruhe,_ _Germany_ A R T I C L E I N F O _Keywords:_ Lattice-Boltzmann OpenLB Advection–diffusion Finite-difference 1. Introduction A B S T R A C T Traditional Lattice-Boltzmann modelling of advection–diffusion flow is affected by numerical instability if the advective term becomes dominant over the diffusive ( _i.e._, high-Péclet flow). To overcome the problem, two 3D one-way coupled models are proposed. In a traditional model, a Lattice-Boltzmann Navier–Stokes solver is coupled to a Lattice-Boltzmann advection–diffusion model. In a novel model, the Lattice-Boltzmann Navier– Stokes solver is coupled to an explicit finite-difference algorithm for advection–diffusion. The finite-difference algorithm also includes a novel approach to mitigate the numerical diffusivity connected with the upwind differentiation scheme. The models are validated using two non-trivial benchmarks, which includes discontinuous initial conditions and the case Peg → ∞ for the first time, where Peg is the grid Péclet number. The evaluation of Peg alongside Pe is discussed. Accuracy, stability and the order of convergence are assessed for a wide range of Péclet numbers. Recommendations are then given as to which model to select depending on the value Peg—in particular, it is shown that the coupled finite-difference/Lattice-Boltzmann provide stable solutions in the case Pe → ∞, Peg → ∞. Advection–diffusion occurs in a wide range of fluid-flow problems, including transport of chemicals, natural convection heat transfer when thermal expansion can be ignored, assessment of mixing through a passive scalar tracer, and many more. Over the last decades, numerical modelling - in particular, computational fluid dynamics (CFD) - has been extensively used as a cheap but robust alternative to often lengthy and expensive experiments [1]. The lattice-Boltzmann is a particular type of explicit finite-difference method, with a tuneable diffusivity parameter [2]; this characteristics provides an advantage over traditional explicit finite-difference methods, as it allows the use of much larger timesteps than what would otherwise required to maintain stability. More significantly, it represents a valid alternative to implicit/segregated finite-volume CFD methods traditionally used to solve the Navier–Stokes equations because of a number of advantages in terms of numerical efficiency and parallelizability, _viz._ : ( _i_ ) full explicitness, with no internal loop being required—therefore, every timestep is updated through a limited and well-defined number of floating-point operations; ( _ii_ ) separation between non-linear and non-local part of the algorithm with the latter being usually limited to first neighbour-access, thereby allowing large parallel runs with no significant efficiency loss due to non-scalable inter-processor communication; and ( _iii_ ) structure simplicity, allowing relatively simple extensions towards a wide variety of phenomena [2–4]. [5] showed that a Lattice-Boltzmann model for laboratory-scale gas mixing on a non-Newtonian fluid performed around 180 times faster than a finite-volume analogue [6], and ran on ten times more processors with no apparent loss of efficiency. Whilst the Lattice-Boltzmann method has been applied to 1D and 2D advection–diffusion problems [7–9], the models demonstrate nu merical instability in advection-dominant flow (high Péclet number) as the relaxation time approaches the critical value of 1/2. Proposed solutions valid for the 1D, 2D and 3D [10–12] mitigate the problem, but still exhibit instability for Pe ⪆ 10 <sup>4</sup> . A more recent fractional step method [13] requires doubling the number of timesteps and the number of lattice points across the coordinate directions; furthermore, it performs calculations requiring access to second-neighbour lattice sites, thereby compromising parallelizability. Therefore, there is clear a need for an advection–diffusion Lattice-Boltzmann method with the ∗ Correspondence to: B2.20, Chesham Building, Bradford BD7 1DP, United Kingdom. _E-mail_ _address:_ [ddapelo@bradford.ac.uk](mailto:ddapelo@bradford.ac.uk) (D. Dapelo). [https://doi.org/10.1016/j.jocs.2021.101363](https://doi.org/10.1016/j.jocs.2021.101363) Received 23 December 2020; Received in revised form 28 March 2021; Accepted 30 March 2021 Available online 7 April 2021 1877-7503/© 2021 The Authors. [Published by Elsevier B.V. This is an open access article under the CC BY license (http://creativecommons.org/licenses/by/4.0/).](http://creativecommons.org/licenses/by/4.0/) _D._ _Dapelo_ _et_ _al._ _Journal of Computational Science 51 (2021) 101363_ Nomenclature _?_ Phase space _?_ Navier–Stokes collision step, kg m <sup>3</sup> _?_ Computational domain _?_ ( ⋅ ) Dirac’s delta _??_ Lattice cell size, m _??_ Lattice timestep, s _?_ Concentration of the advection–diffusion species, m <sup>−3</sup> _?_ <sup>new</sup> Concentration of the advection–diffusion species evaluated at the new timestep, m <sup>−3</sup> _?_ Advection–diffusion lattice relaxation time, s _?_ Dynamics viscosity, Pa s _?_ Kinematic viscosity, m <sup>2</sup> s <sup>−1</sup> _?_ Density, Kg m <sup>−3</sup> _?_ Shear stress, Pa _?_ Navier–Stokes lattice relaxation time, s _?_ <sup>0</sup> Finite-difference coefficient related to _?_ ( _?_ ) _?_ <sup>±</sup> _?_ Finite-difference coefficient related to _?_ <sup>(</sup> _?_ ± _̂_ ? _???_ <sup>)</sup> ? Collision operator, kg m <sup>3</sup> Co Courant number _?_ Nominal length scale, m _??_ Benchmark’s length, m _??_ Benchmark’s width & benchmark’s nominal length scale, m _??_ Benchmark’s depth, m Ma Mach number Nd Finite-difference stability dimensionless number for diffusivity NU Finite-difference stability dimensionless number for nominal velocity _??_ Voxels per unit length across the benchmark’s cross section Pe Péclet number Peg Grid Péclet number ℜ Reynolds number Reg Grid Reynolds number _?_ Nominal advection velocity scale & benchmark’s advection velocity, m s <sup>−1</sup> _?_ _?_ _?_ th discretized lattice velocity, m s <sup>−1</sup> _?_ s Lattice speed velocity, m s <sup>−1</sup> _?_ Diffusivity, m <sup>2</sup> s <sup>−1</sup> _?_ num Numerical diffusion term connected to the upwind differentiation scheme for advection, m <sup>−3</sup> ? _?_ Unit vector along the positive direction of the _?_ coordinate _?_ Navier–Stokes one-particle density function, kg m <sup>−3</sup> _??_ Navier–Stokes discretized one-particle density function relative to the _?_ th lattice direction, kg m <sup>−3</sup> _?_ <sup>(eq)</sup> Navier–Stokes equilibrium one-particle density function, kg m <sup>−3</sup> characteristics of high Péclet number stability, and requiring access to first-neighbouring cells only. Within this article, two Lattice-Boltzmann models are proposed to reproduce a diffusive scalar field concentration advected by a hy drodynamic velocity field. In both the models, hydrodynamics and _??_ <sup>(eq)</sup> Navier–Stokes discretized equilibrium one-particle density function relative to the _?_ th lattice direction, kg m <sup>−3</sup> _??_ Advection–diffusion discretized one-particle density function relative to the _?_ th lattice direction, kg m <sup>−3</sup> _??_ <sup>(eq)</sup> Advection–diffusion discretized equilibrium one particle density function relative to the _?_ th lattice direction, kg m <sup>−3</sup> _?_ Pressure, Pa _?_ Time, s _?_ Advection velocity, m s <sup>−1</sup> _?_ Spatial coordinate, m _?_ 0 _?_ coordinate of the benchmark’s initial tracer distribution, m ⋅ <sup>∗</sup> Dimensionless version of the argument represented by the ⋅ [ ⋅ ] <sup>sch</sup> Differentiation scheme ‘‘sch’’ being applied to the ⋅ inside the brackets CPUs CPU-second ( _viz._, number of seconds a given numerical simulation takes to be run, times number of CPU cores employed) MLUPps Millions of lattice updates per processor per second advection–diffusion are simulated in a coupled way. The two models are composed of a Lattice-Boltzmann submodel to solve hydrodynamics, and a second submodel for advection–diffusion. The coupling occurs one-way, _viz._ : the solution to the hydrodynamics subproblem influences the advection–diffusion solution, but the converse does not occur. In the ‘‘traditional’’ model, the advection–diffusion submodel is defined as a Lattice-Boltzmann model, whilst in the ‘‘novel’’ model, an explicit finite-difference submodel is used. The rationale for introducing an explicit finite-difference submodel for advection–diffusion is based on the fact that finite-difference is the most obvious choice of model when the computational domain is composed of a cubic lattice (as is the case of the numerical work presented here), and, for the very specific case of an explicit method with access to first neighbours only, it maintains the same level of parallelizability and efficiency as the standard Lattice-Boltzmann method. Scaling tests are performed in order to verify this claim. In both models, at each timestep, the LatticeBoltzmann submodel solves the Navier–Stokes equations to update the hydrodynamics; the coupling is performed by passing the obtained velocity field to the advection–diffusion submodel; and finally, the latter solves the advection–diffusion equation and updates the scalar field concentration. In the literature cited above, the assessments are performed in terms of the Péclet number, or other numbers tracing the balance between advective and a given form of diffusive (chemical, or thermal) transport. This approach provides a good assessment of the physics underlying the phenomena being analysed, but does not necessarily provide a reliable assessment of numerical stability. [9] defines the grid Reynolds number Reg from lattice quantities, and identifies that a simulation is stable if Reg _≳_ 10, heuristically meaning that ‘‘The lattice should always be sufficiently fine to resolve local vortices’’. [14,15] introduce the grid Péclet number Peg as the analogue to Reg in advection–diffusion models. This approach implies a separation between physical interpretation of a process ( _i.e._, the balance between advective and diffusive transport), which is expressed through ℜ, Pe, ...; and stability assessment of a numerical simulation ( _i.e._, whether or not the lattice is fine enough to resolve the local vortices), which is expressed through Reg, Peg, .... In parallel with the assessment of Peg, the evaluation of the numerical stability is also performed in [9,14,15] through methodologies involving the mutual balance between Reg or Peg, the lattice relaxation time _D._ _Dapelo_ _et_ _al._ _Journal of Computational Science 51 (2021) 101363_ _?_ (or _?_ in the advection–diffusion) and the characteristic velocity _?_ or the courant number Co ≡ _???_ ∕ _??_ (where _??_ is the lattice spacing and _??_ the timestep). The above-mentioned work does not explicitly consider the case of zero diffusivity, _i.e._ Peg → ∞ ; in fact, it can be implied from [9] and [14] that the simulations are intrinsically unstable in this specific case. However, an explicit assessment of the case Peg → ∞ is justified by its importance in applications, _e.g._ in assessing mixing quality through scalar tracer concentration, or wherever diffusive processes are negligible altogether. For this reason, the work described within this article is focussed on the assessment of model stability in terms of Peg alone, and the case Pe _,_ Peg → ∞ is explicitly taken into consideration for the first time within the research concerning the Lattice-Boltzmann method; the balance between Peg, Co and relaxation time is considered only for the purpose of verifying the coherence of the simulations. In order to provide the most possible robust assessment, two benchmarks are implemented in a non-trivial way as a Gaussian concentration packet or a sinusoidal wave spreading and being advected by a constant velocity field, with a tracer concentration presenting a sharp discontinuity as initial condition; within both periodical and non-periodical computational domains. Previous work [16] shows that Lattice-Boltzmann advection–diffusion observes second-order convergence on simulations starting from continuous initial conditions, and first-order if the initial condition presents a discontinuity. This reduction of the order of convergence is explained by the fact that, in the discontinuous case, the eigenvalues of the Lattice-Boltzmann evolution matrix are close to −1, thereby causing the onset of oscillations. However, [16] is limited in analysis to 1D simulations: within this work, the analysis is extended to the 3D case, thereby providing a complete assessment of the convergence for the model and filling the knowledge gap in the literature. All the simulations are performed using OpenLB [(www.openlb.net)](http://www.openlb.net) version 1.3 [4,17]. This article is structured as follows. In Section 2, the two models are outlined. In Section 3, the Navier–Stokes Lattice-Boltzmann model and the advection–diffusion Lattice-Boltzmann are described. Then, the explicit finite-difference model is described in Section 4. Two benchmarks to assess performance and stability are described in Section 5. The results are reported in Section 6, and recommendations on which model to use depending on the value of Peg are given in Section 7. Finally, conclusions are drawn in Section 8. 2. General outline of the model Both the proposed coupled and the standard models follow the general algorithm described below. 3. Lattice-Boltzmann modelling The Lattice-Boltzmann model is a mesoscopic model insofar as it{( _?_ aims _,_ _?_ ) ∈atR <sup>3</sup> finding× R <sup>3}</sup> . Thea trajectory‘‘one-particle _?_ ( _?_ _,_ density _?_ _,_ _?_ ) in function’’the phase _?_ space( _?_ _,_ _?_ _,_ _??_ ) de-≡ scribes the probability of finding one particle of fluid within the elemental cube ( _?_ _,_ _?_ + _?_ _?_ ) with a velocity comprised within the cubic interval ( _?_ _,_ _?_ + _?_ _?_ ) at the time _?_ . The observable fields ( _viz._, density, velocity and shear stress) correspond to the particle density function’s zeroth, first and second moments respectively [9]: _?_ = ∫ _??_ _?_ ; (4) _?_ _?_ = ∫ _?_ _?_ _?_ _?_ ; (5) _?_ _?_ _⊗_ _?_ - _?_ = ∫ _?_ _?_ _⊗_ _?_ _?_ _?_ _._ (6) The model solves the Boltzmann equation: ( _??_ + _?_ ⋅ ∇) _?_ = ? [ _?_ ] _._ (7) Algorithm 1: General algorithm 1 Initialize hydrodynamics (density field _?_ and velocity field _?_ ) and advection–diffusion characteristics (scalar concentration field _?_ ); 2 for _timestep:_ _?_ = 0 to _?_ max by _??_ do 3 Hydrodynamics update: a standard Lattice-Boltzmann submodel solves the weakly-compressible Navier–Stokes equations: _???_ + ∇ ⋅ ( _?_ _?_ ) = 0 ; (1) _??_ ( _?_ _?_ ) + ∇ ⋅ ( _?_ _?_ _⊗_ _?_ ) = −∇ _?_ + _?_ ∇ <sup>2</sup> _?_ (2) (with _?_ being the pressure and _?_ the dynamic viscosity) and updates the velocity field _?_ ; 4 Pass the updated velocity field _?_ to the submodel for advection–diffusion; 5 Advection–diffusion update: an explicit finite-difference submodel (or an advection–diffusion Lattice-Boltzmann submodel for the comparison model) solves the advection–diffusion equation: _???_ + ∇ ⋅ ( _?_ _?_ ) = _?_ ∇ <sup>2</sup> _?_ (3) (with _?_ being the diffusivity) and updates the concentration field _?_ ; Eq. (7) describes continuity for _?_ in the phase space, plus a source–sink term arising from inter-particle collisions. In the diluted gas hypothesis, only binary particle collisions contribute to the collision operator ? . Under the isotropy assumption, it is possible to model the potentially extremely complicated operator ? [18] as an average, relaxing towards the equilibrium particle density function _?_ <sup>(eq)</sup> : ? [ _?_ ] = − <sup><u>1</u></sup> _?_ ( _?_ - _?_ (eq)) _,_ (8) where _?_ is the relaxation time, and _?_ <sup>(eq)</sup> is the Maxwell equilibrium distribution [9]: { ( <u>1</u> 2 _??_ s <sup>2</sup> } _._ (9) )3∕2 _?_ <sup>(eq)</sup> ( _?_ _,_ _?_ ) ∶= _?_ ( _?_ _,_ _?_ ) exp - <sup><u>[</u></sup> <sup>_<u>?</u>_</sup> <sup><u>(</u></sup> <sup>_<u>?</u>_</sup> <sup>_<u>,</u>_</sup> <sup>_<u>?</u>_</sup> <sup><u>)]2</u></sup> 2 _?_ s <sup>2</sup> - <sup><u>[</u></sup> <sup>_<u>?</u>_</sup> <sup><u>(</u></sup> <sup>_<u>?</u>_</sup> <sup>_<u>,</u>_</sup> <sup>_<u>?</u>_</sup> <sup><u>)]2</u></sup> _?_ s is the speed of sound, and density and velocity are evaluated through Eqs. (4) and (5). Space is discretized as a cubic lattice of lattice size _??_, time is velocitysubdividedspaceintoistimestepsdiscretizedofasintervala finite _??_ set, andof thevectorsthree-dimensional <sup>{</sup> _?_ 0 _,_ … _,_ _?_ _?_ −1} pointing to the zeroth, first, second ~~√~~ and √third ~~√~~ <u>neighbo</u> ~~√~~ <u>urs</u> of a generic lattice site, with moduli respectively 0, 1, 2 and 3 times _??_ ∕ _??_ . A given discretization is conventionally identified by a tag D _?_ Q _?_, with _?_ the dimensionality of the problem and _?_ the dimension of the discrete velocity space. _?_ ( _?_ _,_ _?_ _,_ _?_ ) is redefined over the discretized lattice and timesteps, and rewritten as a set _??_ ( _?_ _,_ _?_ ), each _??_ indicating the probability of finding a particle with the corresponding discretized velocity _?_ _?_ . The integrals in Eqs. (4), (5) and (6) are redefined as summations over the velocity set: <u>nd</u> √t 0, rd ~~√~~ 1, <u>neighbo</u> ~~√~~ 2 and ~~√~~ a _??_ ; (10) _?_ = ∑ _?_ _?_ = _?_ ∑ _?_ _??_ _?_ _?_ ; (11) _?_ _?_ _⊗_ _?_ - _?_ = ∑ _?_ _??_ _?_ _?_ _⊗_ _?_ _?_ _._ (12) The error arising from the discretization of the velocity set is cancelled by writing the Maxwell equilibrium function (Eq. (9)) in terms of _D._ _Dapelo_ _et_ _al._ _Journal of Computational Science 51 (2021) 101363_ orthonormal Hermite polynomials up to the second order: [ )2 - _?_ <u>s2</u> <sup>_?_</sup> <sup>2</sup> 2 _?_ s <sup>4</sup> ] _,_ (13) _??_ <sup>(eq)</sup> = _??_ _?_ 1 + <sup>_?_</sup> <sup>⋅</sup> <sup>_?_</sup> <sup>_<u>?</u>_</sup> _?_ s <sup>2</sup> + ( _?_ ⋅ _?_ _?_ s where the weights _??_ and the speed of sound are defined in a standard way for the specific D _?_ Q _?_ lattice, with the latter usually being defined as: <u>1</u> _?_ s ∶= ~~√~~ 3 _<u>??</u>_ _??_ <sup>_._</sup> (14) The Boltzmann Eq. (7), considering the BGK assumption (Eq. (8)), becomes the Lattice-Boltzmann Equation: _?_ <sup>(eq)</sup> ( _?_ _,_ _?_ ) _._ (15) [ ] The same lattice of the Lattice-Boltzmann Navier–Stokes model is used in order to avoid interpolation, and with the same timestep _??_ to simplify the time iteration. Consequently, the values of the speed of found for the advection–diffusion and the Navier–Stokes models are the same. _3.2._ _Stability_ _constraint_ _of_ _the_ _lattice-Boltzmann_ _model_ _for_ _advection–_ _diffusion_ The Péclet number is defined as: Pe ∶= <sup>_<u>??</u>_</sup> _,_ (23) _?_ where _?_ and _?_ are respectively the length and velocity scales of a given problem. As the Reynolds number is the ratio of inertial to viscous forces in the Navier–Stokes case, Pe can be interpreted as the balance between advective and diffusive transport. The advection–diffusion relaxation time _?_ approaches the stability-critical value of 1∕2 when Pe grows, exactly as _?_ in the Navier–Stokes case if ℜ grows [13]. Following the analogy between Navier–Stokes and advectiondiffusion, a first criterion to assess advection–diffusion LatticeBoltzmann can be outlined through defining the grid Péclet number following [9]: Peg ∶= <sup>_<u>?</u>_</sup> <sup>∗</sup> <sup>_<u>??</u>_</sup> <sup>∗</sup> _._ (24) _?_ <sup>∗</sup> The stability criterion reads: Peg _≲_ 10 _._ (25) Within this work, the dimensionless version _?_ <sup>∗</sup> of the quantity _?_ is computed from its units of measure { _?_ } as follows: _?_ <sup>∗</sup> ∶= _???_ <sup>−</sup> <sup>_?_</sup> _??_ <sup>−</sup> <sup>_?_</sup> if { _?_ } = m <sup>_?_</sup> s <sup>_?_</sup> _._ (26) Considering that, within this work, we have _?_ = _????_ with _??_ being the number of cells comprised within _?_, it follows that Peg can be equivalently defined as: _??_ ( _?_ + _?_ _?_ _??,_ _?_ + _??_ ) = _??_ ( _?_ _,_ _?_ ) − <u>1</u> _?_ _??_ ( _?_ _,_ _?_ ) − _??_ <sup>(eq)</sup> The updating process for each lattice site at a given timestep comprises two steps. First: a local, non-linear _collision_ : [ _?_ <sup>(eq)</sup> ( _?_ _,_ _?_ ) _._ (16) _??_ ( _?_ _,_ _?_ ) = _??_ ( _?_ _,_ _?_ ) − <sup><u>1</u></sup> _?_ _??_ ( _?_ _,_ _?_ ) = _??_ ( _?_ _,_ _?_ ) − <sup><u>1</u></sup> _??_ ( _?_ _,_ _?_ ) − _??_ <sup>(eq)</sup> ] Then: a linear, non-local _streaming_ : _??_ ( _?_ + _?_ _?,_ _?_ + 1) = _??_ ( _?_ _,_ _?_ ) _._ (17) In this way, the adiabatic dynamics with a compressibility error of Ma <sup>2</sup> with Ma being the Mach number, are recovered. In the limit Ma _≪_ 1, the Lattice-Boltzmann Eq. (15) reproduces the Navier–Stokes (Eqs. (1)) and (2) in the incompressible limit [9], with pressure and kinematic viscosity defined as: _._ (18) ) _?_ ∶= _??_ s <sup>2</sup> s <sup>2</sup> <sup>_,_</sup> _?_ ∶= _?_ s <sup>2</sup> s ( _?_ - <sup>_<u>??</u>_</sup> 2 _3.1._ _Lattice-Boltzmann_ _model_ _for_ _the_ _advection–diffusion_ _equations_ A comparison between the advection–diffusion (Eq. (3)) and the Navier–Stokes equation for the momentum (Eq. (2)) shows that the latter can be regarded as an advection–diffusion equation for the momentum density vector _?_ _?_ in place of the scalar concentration _?_ . This analogy allows the export of the same model developed in Section 3 for the Navier–Stokes case, to the advection–diffusion [9]. Alternatively, it is possible to derive the Lattice-Boltzmann advection–diffusion model directly from the macroscopic equation (3) following the approach of [19]. Either way, a discretized one-particle density function is conventionally defined as _??_ ( _?_ _,_ _?_ ), and the concentration _?_ is obtained from its zeroth moment: Peg = <sup>_<u>???</u>_</sup> _?_ <sup>_<u>???</u>_</sup> = Pe <sup>_<u>??</u>_</sup> _?_ _?_ <sup>_<u>??</u>_</sup> _?_ <sup>=</sup> _?_ <sup><u>Pe</u></sup> _?_ _??_ _._ (27) A second criterion for advection–diffusion Lattice-Boltzmann stability comes from the same analogy. [20] studied the neutral stability Co– _?_ <sup>∗</sup> curves, and [9] provided a simplified mathematical expression to defined the stability domain of the Lattice-Boltzmann method. This expression can be extended to the advection–diffusion as follows: Co ≤ 0 _._ 4 if _?_ <sup>∗</sup> ≥ 0 _._ 55 ; { (28) 2 <sup><u>1</u></sup> <sup>+</sup> <sup><u>1</u></sup> 8 <sup>Co</sup> if 0 _._ 5 _< ?_ <sup>∗</sup> _<_ 0 _._ 55 _._ _?_ = ∑ _??_ _._ (19) _?_ _?_ <sup>∗</sup> _>_ 2 <sup><u>1</u></sup> The only difference from the Navier–Stokes case is that higher-order moments of _??_ do not possess physical meaning because only one single scalar conservation law ( _viz._, mass) is approximated in the advection diffusion equation (Eq. (3)), and therefore are not evaluated. In fact, the physical advection velocity _?_ appearing in Eq. (3) is imposed externally ( _viz._, copied from the hydrodynamics model). The rest of the model is left unchanged: _i.e._ the definition of speed of sound as a numerical constant (Eq. (14)) is maintained unaltered, the Lattice-Boltzmann equation is defined as in Eq. (15): _?_ <sup>(eq)</sup> ( _?_ _,_ _?_ ) (20) [ ] As the focus of this work is to compare the stability of the LatticeBoltzmann and the explicit finite-difference advection–diffusion models in terms of Peg and in the specific case Peg → ∞, the criterion of Eq. (25) is mainly employed. The robustness of the subsequent conclusions is then assessed through the criterion of Eq. (28). 4. Finite-difference model for the advection–diffusion equations An explicit finite-difference discretization [21] of the macroscopic advection–diffusion equation (3 is performed on the same lattice of the Lattice-Boltzmann Navier–Stokes model in order to avoid interpolation, and with the same timestep _??_ to simplify the time iteration: _<u>?</u>_ <sup>new</sup> <u>−</u> _<u>?</u>_ _??_ + [∇ ⋅ ( _?_ _?_ )] <sup>adv</sup> = <sup>[</sup> _?_ ∇ <sup>2</sup> _?_ <sup>]diff</sup> _._ (29) The ‘‘new’’ superscript indicates that the value of the concentration field is referred to the timestep being currently resolved; conversely, its absence indicates that the value of the concentration field refers to the previous timestep. This formulation allows an explicit evaluation of _?_ <sup>new</sup> without timestep-internal loops, as in the Lattice-Boltzmann case. The differentiation schemes [ ⋅ ] <sup>sch</sup> are chosen as: the standard _??_ ( _?_ + _?_ _?_ _??,_ _?_ + _??_ ) = _??_ ( _?_ _,_ _?_ ) − <u>1</u> _?_ _??_ ( _?_ _,_ _?_ ) − _??_ <sup>(eq)</sup> (with an advection–diffusion relaxation time _?_ ), the equilibrium function follows Eq. (13) with _?_ in place of _?_ : [ )2 - _?_ <u>s2</u> <sup>_?_</sup> <sup>2</sup> 2 _?_ s <sup>4</sup> ] _,_ (21) _??_ <sup>(eq)</sup> = _??_ _?_ 1 + <sup>_?_</sup> <sup>⋅</sup> <sup>_?_</sup> <sup>_<u>?</u>_</sup> _?_ s <sup>2</sup> + ( _?_ ⋅ _?_ _?_ s and the diffusivity _?_ takes the place of the kinematic viscosity _?_ in Eq. (18): ( _._ (22) ) _?_ ∶= _?_ s <sup>2</sup> _?_ ∶= _?_ s <sup>2</sup> _?_ - <sup>_<u>??</u>_</sup> 2 _?_ - <sup>_<u>??</u>_</sup> _D._ _Dapelo_ _et_ _al._ _Journal of Computational Science 51 (2021) 101363_ second-order central scheme for the diffusion term; and either standard first-order upwind, or standard second-order central schemes for the advection term. In three dimensions, the central diffusion scheme reads: in terms of Peg and in the specific case Peg → ∞. The criterion of Eq. (35) is used as a background verification of the applicability of the explicit finite-difference method. _4.2._ _Negative-diffusivity_ _correction_ [ _?_ ( _?_ + _̂_ ? _???_ ) + _?_ ( _?_ - _̂_ ? _???_ )] −6 _?_ ( _?_ ) _._ _??_ <sup>2</sup> [ _?_ ∇2 _?_ ( _?_ )]diff = _?_ ∑ _?_ ∈{ _?, ?, ?_ } (30) Although Eq. (36) poses a strict stability constraint only if the central advection scheme is adopted, bespoke numerical results in the upwind advection case show the presence of numerical diffusivity along the direction of the flow, proportional to _?_ . This is due to the fact that theTaylorfirstexpansionstruncated ofterm _?_ <sup>(</sup> _?_ in± _̂_ ? Eq. _???_ (32) <sup>)</sup> around, corresponding _?_ ( _?_ ), takestothesecond-orderedform of: The central advection scheme reads: _̂_ _̂_ ∑ [ _?_ ( _?_ + _̂_ ? _???_ ) - _?_ ( _?_ - _̂_ ? _???_ )] _̂_ _̂_ _._ (31) 2 _??_ [∇ ⋅ ( _?_ _?_ )] <sup>adv_central</sup> = The upwind: [∇ ⋅ ( _?_ _?_ )] <sup>adv_upwind</sup> = _?_ ∈{ _?, ?, ?_ } <sup>_?_</sup> _?_ _,_ (32) _??_ _̂_ ( _<u>?</u>_ 2 _<u>?</u>_ _<u>?</u>_ 2 _<u>?</u>_ _??_ <sup>2</sup> <sup>+</sup> <sup>_<u>?</u>_</sup> _??_ <sup>2</sup> <sup>_<u>?</u>_</sup> <sup>2</sup> _??_ <sup>2</sup> _̂_ ) <u>||</u> _??_ <u>||</u> _??_ 2 _?_ ∈{ _?, ?, ?_ } <sup>_?_</sup> <sup>[</sup> <sup>_?_</sup> <sup>(</sup> <sup>_?_</sup> <sup>)</sup> <sup>_,_</sup> <sup>_?_</sup> <sup>_,̂_</sup> <sup>?</sup> _?_ ] _?_ num = ∑ _._ (39) with: _?_ <sup>[</sup> _?_ ( _?_ ) _,_ _?_ _,̂_ ? _?_ _??_ _??_ (33) ] = { [ _?_ ( _?_ ) − _?_ ( _?_ - _̂_ ? _???_ )] _,_ _??_ ≥ 0 ; _̂_ _̂_ [ _?_ ( _?_ + _̂_ ? _???_ ) − _?_ ( _?_ ) _̂_ _̂_ ] _,_ _??_ _<_ 0 _._ A comparison of this term to the diffusion differentiation scheme (Eq. (30)) shows that this term can be interpreted as an artificial anisotropic diffusivity contribution. In order to mitigate this effect, a novel approach, consisting of multiplying the artificial diffusivity (Eq. (39)) by a tuning factor _?_ and subtracting it from the diffusivity scheme, is proposed. The secondorder central differentiation scheme for diffusivity is thus redefined as follows when employed in combination with the upwind scheme for advection: can be verified by substituting Taylor expansions ofThe orders of convergence of the schemes above _?_ <sup>(</sup> _?_ (Eqs.± _̂_ ? _???_ (30)–(32) <sup>)</sup> around) _?_ ( _?_ ) in the respective equations. _4.1._ _Stability_ _constraints_ _of_ _the_ _finite-difference_ _model_ _for_ _advection-_ _diffusion_ Substituting the appropriate differentiation schemes (Eqs. (30)– (32)), it is possible to rewrite Eq. (29) in the following general form: [ _?_ ∇2 _?_ ( _?_ ) ]diff_corr _?_ ( ∑ _?_ ∈{ _?, ?, ?_ } ) [ _?_ ( _?_ + _̂_ ? _???_ ) + _?_ ( _?_ - _̂_ ? _???_ )] −6 _?_ ( _?_ ) _._ (40) _??_ <sup>2</sup> _?_ - _?_ <sup><u>|</u></sup> <sup>_??_</sup> <sup><u>|</u></sup> <sup>_??_</sup> 2 = ∑ _?_ ∈{ _?, ?, ?_ } _?_ <sup>−</sup> _?_ <sup>_?_</sup> <sup>(</sup> <sup>_?_</sup> <sup>−</sup> <sup>_̂_</sup> <sup>?</sup> <sup>_???_</sup> <sup>)</sup> <sup>_._</sup> <sup>(34)</sup> 5. Numerical work A periodical and a non-periodical benchmark are defined. Over the periodical benchmark, simulations are performed through only the Lattice-Boltzmann advection–diffusion model, with both smooth and sharp initial conditions for the concentration field _?_ . Over the nonperiodical benchmark, simulations are performed through both the Lattice-Boltzmann and the finite-difference advection–diffusion models, but only with a sharp initial condition. As detailed below, the smoothstart simulations reproduce a sinusoid, and the sharp-start one a series of Gaussian packets. _5.1._ _Periodical_ _benchmark_ A simplified version of the general algorithm (Section 2) is applied— specifically, the hydrodynamics is not solved, and a constant velocity field _?_ = (2 _._ 5 _,_ 2 _._ 5 _,_ 2 _._ 5) m∕s is passed to the advection–diffusion model. A computational domain _?_ is defined as a periodical cube size _??_ = 2 m. The simulations are performed over a time of 1 _._ 52 s. Five different values of _??_, corresponding to 25, 50, 100, 200 and 400, are chosen. The timestep is determined under diffusive scaling through the prescription _??_ = _??_ <sup>2</sup> ⋅ 1 s∕m <sup>2</sup> . Four different values of Pe, corresponding to 100, 1 000, 10 000 and 100 000, are chosen. The corresponding values of the relaxation time in dimensionless units _?_ <sup>∗</sup> are 0.65, 0.515, 0.5015 and 0.50015, and the corresponding values of the Courant number Co are 0.2, 0.1, 0.05, 0.025 and 0.0125 respectively. The corresponding values of _?_ and Peg are determined through Eqs. (23) and (27) respectively. A time-averaged discrete relative _?_ <sup>2</sup> -error norm is calculated via: _?_ <sup>new</sup> = _?_ <sup>0</sup> _?_ ( _?_ ) + ∑ _?_ ∈{ _?, ?, ?_ } _?_ <sup>+</sup> _?_ <sup>_?_</sup> <sup>(</sup> <sup>_?_</sup> <sup>+</sup> <sup>_̂_</sup> <sup>?</sup> <sup>_???_</sup> <sup>) +</sup> <sup>+</sup> _?_ <sup>_?_</sup> <sup>(</sup> <sup>_?_</sup> <sup>+</sup> <sup>_̂_</sup> <sup>?</sup> <sup>_???_</sup> <sup>) +</sup> As a necessary condition for the algorithm to be stable, all the coefficients _?_ in the equation above should be non-negative. This requirement, in turn, poses constraints on the values of velocity, diffusivity, lattice spacing and timestep, as follows. A first constraint comes from the requirement that _?_ <sup>0</sup> should be non-negative. This is related to the explicit nature of the model, and consists of a superior limit to the timestep value. Within this work, it is formulated as follows: Nd ∶= 6 <sup>_<u>??</u>_</sup> _???_ <sup>2</sup> <sup>_>_</sup> <sup>1</sup> <sup>_._</sup> (35) Whilst this constraint usually poses serious limits to explicit methods, it does not prevent a successful application of the coupled model because in Lattice-Boltzmann modelling, the timestep value is usually kept low by the assumption _???_ ∕ _??_ ∼Ma _≪_ 1. Conversely, once _??_ and _??_ are chosen following the balance between accuracy, stability and numerical expense usually performed in Lattice-Boltzmann modelling [9], Eq. (35) poses a superior limit to the diffusivity. A second constraint comes from the requirement that _?_ <sup>−</sup> _?_ <sup>should</sup> <sup>be</sup> non-negative in the case of the central advection scheme: <u>2</u> _<u>?</u>_ NU ∶= _???_ <sup>_>_</sup> <sup>1</sup> <sup>_._</sup> (36) This constraint poses an inferior limit to the ratio of diffusivity over reference velocity. A comparison between Eqs. (27) and (36) shows that: <u>2</u> NU = Peg ∑ _?_ err _?_ 2 _?_ =1 ( _??_ ) _,_ (41) _._ (37) <u>err</u> = <sup><u>1</u></sup> _?_ where: Therefore, the constraint of Eq. (36) is equivalent to a constraint on Peg: Peg _≲_ 5 _._ (38) As in Section 3.2, the interest is directed towards the stability criterion of Eq. (38) in order to compare the stability of the LatticeBoltzmann and the explicit finite-difference advection–diffusion models _?_ is the numerical outcome of the simulations, while _?_ <sup>an</sup> is the bespoke analytical solution. ~~∑~~ ~~)~~ - _?_ an ~~(~~ _?_ _, ??_ ~~)]~~ 2 √ √ √ √ √ <u>∑</u> ~~[~~ _?_ ~~(~~ _?_ _, ??_ err _?_ 2 ( _??_ ) = _<u>?</u>_ <u>∈</u> _<u>?</u>_ ~~)]~~ 2 _._ (42) _?_ ∈ _?_ ~~[~~ _?_ an ~~(~~ _?_ _, ??_ _D._ _Dapelo_ _et_ _al._ _Journal of Computational Science 51 (2021) 101363_ Fig. 1. Non-periodical benchmark for sharp initial condition. Fig. 2. Periodical benchmark for smooth initial condition. Iso-contour solution for _??_ = 200 and Pe = 100. _5.2._ _Non-periodical_ _benchmark_ The full general algorithm is applied as described in Section 2. The computational domain (Fig. 1) consists of a square-section pipe with _??_ = _??_ = 1 m and _??_ _≫??_ being set depending on the specific run. The flow velocity is a constant _?_ with magnitude of 0, 0.1 or 2 m∕s, directed towards the _?_ direction and is once again set depending on the specific run. The boundary conditions for the Lattice-Boltzmann Navier–Stokes solver are: inlet and outlet are defined as in the figure; free-slip on the walls. For the advection–diffusion solvers, the boundary conditions on the wall are defined as: bounce-back for the LatticeBoltzmann, no-penetration for the finite-difference. The potential error arising from setting bounce-back and no-penetration conditions to inlet and outlet is avoided by choosing _??_ _≫??_ _,_ _??_ and by stopping the simulations before the Gaussian packet’s 3 _?_ tail reached the outlet. The Navier–Stokes lattice relaxation time is set to _?_ = 0 _._ 8. The timestep is determined under diffusive scaling through the prescription _??_ = _??_ <sup>2</sup> ⋅ 1 s∕m <sup>2</sup> . Unless otherwise specified, it is set _??_ = 11. It follows that Co amounts to 0, 0.009 and 0.182 for _?_ corresponding respectively to 0, 0.1 and 2 _._ 0 m∕s. Simulation results and errors are evaluated at each timestep separately, in terms of the value of _?_ along the dashed line in Fig. 1 (indicated as _?_ below). Only the last timestep is considered for further analysis. The error is computed as the _?_ 2 distance between numerical and analytical values of _?_ over the _?_ 2 norm of the analytical solution, evaluated along the same dashed line: _5.3.1._ _Non-periodical_ A spreading Gaussian density packet advecting along _?_ is modelled. The initial condition for _?_ is defined as: _?_ 0 − <sup>_<u>??</u>_</sup> 2 <sup>_, ?_</sup> <sup>0 +</sup> <sup>_<u>??</u>_</sup> 2 ; ⎧ ⎪ ⎨ ⎪⎩ ( ) (46) _?_ 0( _?_ ) ≡ _?_ ( _?_ _,_ 0) = 0 _,_ elsewhere. _???_ <u>1</u> _???_ <sup>_,_</sup> _?_ ∈ The initial position _?_ 0 is either 0 or _??_ ∕4 depending on the particular run. It can be demonstrated that the benchmark possesses the following analytical solution: _?_ <sup>an</sup> ( _?_ _,_ _?_ ) = ~~√~~ <u>1</u> )2 ~~√~~ - <sup>(</sup> _?_ - _??_ - _?_ <u>0</u> _,_ (47) 4 _??_ _????_ exp 4 _???_ and the initial condition for the analytical solution is the Dirac’s delta: _?_ <sup>(</sup> _?_ - _?_ 0 _?_ <sup>an</sup> ( _?_ _,_ 0) = <u>1</u> _????_ ) _._ (48) A proof of the mutual coherence of Eqs. (46), (47) and (48) is given in the Supplementary Material. _5.3.2._ _Periodical_ A superposition of spreading Gaussian density packets advecting along _?_ is modelled. The initial condition for _?_ is defined as: <sup>_<u>??</u>_</sup> 2 <sup>_, ?_</sup> <sup>0 +</sup> <sup>_<u>??</u>_</sup> 2 ; ( _?_ 0 − <sup>_<u>??</u>_</sup> 2 ) ~~∑~~ (49) ~~)~~ - _?_ an ~~(~~ _?_ _, ??_ ~~)]~~ 2 1 _,_ elsewhere. ~~√~~ 4 _????_ <u>1</u> <sup>+ 1</sup> <sup>_,_</sup> _?_ ∈ ~~√~~ 41 ) = √ √ √ √ √ <u>∑</u> _?_ 0( _?_ ) ≡ _?_ ( _?_ _,_ 0) = ~~[~~ _?_ ~~(~~ _?_ _, ??_ ⎧ ⎪ ⎨ ⎪⎩ err _?_ 2 ( _??_ _<u>?</u>_ <u>∈</u> _<u>?</u>_ ~~)]~~ 2 _._ (43) _?_ ∈ _?_ ~~[~~ _?_ an ~~(~~ _?_ _, ??_ _5.3._ _Smooth_ _initial_ _condition_ The initial condition is set as: _?_ 0( _?_ ) ≡ _?_ ( _?_ _,_ 0) = sin ( _??_ ) sin ( _??_ ) sin ( _??_ ) + 1 _._ (44) It can be demonstrated [22] that the benchmark possesses the following analytical solution: _?_ <sup>an</sup> ( _?_ _,_ _?_ ) = sin <sup>[</sup> _?_ <sup>(</sup> _?_ - _???_ <sup>)]</sup> sin <sup>[</sup> _?_ <sup>(</sup> _?_ - _???_ <sup>)]</sup> sin <sup>[</sup> _?_ <sup>(</sup> _?_ - _???_ <sup>)]</sup> _?_ <sup>−3</sup> <sup>_?_</sup> <sup>2</sup> <sup>_??_</sup> + 1 _._ (45) An example of solution is provided in Fig. 2. It can be demonstrated [23] that the benchmark possesses the following analytical solution: The proof of the mutual coherence of Eqs. (49), (50) and (51) follows from Section 5.3.1 and in the Supplementary Material because of the linearity of the advection–diffusion equation. _?_ <sup>an</sup> ( _?_ _,_ 0) = ~~√~~ <u>1</u> 4 _???_ _?_ <sup>an</sup> ( _?_ _,_ 0) = ~~√~~ <u>1</u> ∑ _?_ ∈Z exp - <sup>(</sup> _?_ - _?_ <u>0</u> - _??_ + _??_ <sup>)2</sup> + 1 _,_ (50) 4 _??_ and the initial condition for the analytical solution is the Dirac’s comb: _?_ <sup>an</sup> ( _?_ _,_ 0) = ∑ _?_ ∈Z _?_ <sup>(</sup> _?_ - _?_ 0 − _??_ <sup>)</sup> _._ (51) _D._ _Dapelo_ _et_ _al._ _Journal of Computational Science 51 (2021) 101363_ Fig. 3. Convergence of the Lattice-Boltzmann model for several values of Pe, smooth start. 6. Results A series of numerical simulations reproducing the smooth-start benchmark was performed on a Lenovo X380 laptop equipped with a 4-core, 8-thread Intel Core i5-8250U CPU. Another series, reproducing the sharp-start, was performed on a Dell XPS 13 9600 laptop equipped with a 4-core, 8-thread Intel Core i7-1065G7. A third series of simulations for testing purposes was computed on a maximum of 10 nodes with two deca-core Intel Xeon E5-2660 v3 each. Finally, the scaling-up tests were performed on three 40-core Lenovo ThinkSystem SR65 units. _6.1._ _Smooth_ _start:_ _Lattice-Boltzmann_ The convergence behaviour of the Lattice-Boltzmann model for advection–diffusion on the smooth start case is reported in Fig. 3. The second-order convergence is evident. _6.2._ _Sharp_ _start_ _on_ _the_ _periodical_ _benchmark:_ _Lattice-Boltzmann_ The convergence behaviour of the Lattice-Boltzmann model for advection–diffusion on the smooth start case is reported in Fig. 4. A deterioration of the convergence from second to first order can be observed, as noted by [16]. However, such deterioration occurs only for Peg _≲_ 100—that is, a relaxed version of the stability criterion of Eq. (25). In other words, the violation of the above-mentioned criterion leads to results that still retain stability, but at the price of a lower order of convergence. Concerning the second stability criterion (Eq. (28)), it can be verified that the simulations with Pe = 10 000 and Pe = 100 000 fail the second line of Eq. (28), despite the fact that the simulations with Pe = 10 000 and Peg _≲_ still display second-order convergence. _6.3._ _Sharp_ _start_ _on_ _the_ _non-periodical_ _lattice:_ _Lattice-Boltzmann_ The convergence behaviour of the Lattice-Boltzmann model for advection–diffusion with Peg = 0 on the sharp start case is reported in Fig. 5. The value of diffusivity is set to _?_ = 0 _._ 01 m <sup>2</sup> ∕s. In this case, the first-order convergence is evident, as in [16]. In Fig. 6(a), the value of _?_ along the _?_ coordinate is plotted for _?_ = 0 and for values of _?_ comprised between 0.001 and 1 m <sup>2</sup> ∕s. The error is shown to be below 4%. However, Fig. 6(b) evidences the presence of oscillations for _?_ = 0 m <sup>2</sup> ∕s. The results of tests performed on _?>_ 0, corresponding to Co = 0 _._ 00909, are shown in Fig. 7. The corresponding values of _?_, Pe, Peg and _?_ <sup>∗</sup> are reported in Table 1. In all the cases, the computational time was between 20 and 25 CPUs. Fig. 7(a) shows the onset of oscillations for Pe ⪆ 400, which results in an increase in the error (Fig. 7(b)). From this value of Pe onwards, the simulations are also found to fail the stability criterion of Eq. (28). Oscillations dominate the figure for Pe → ∞ and eliminate the model’s predictive power. _6.4._ _Sharp_ _start:_ _finite-difference_ The convergence behaviour of the explicit finite-difference model is reported in Figs. 8 (for diffusive-only systems) and 9 (for _?>_ 0). In the case _?>_ 0, the same values of _?_, Pe and Peg of Section 6.3 and Table 1 are used. Nd = 50 in all the runs, while NU is infinite in the _?_ = 0 runs (Fig. 8) and spans from 2 to 11.6 in the _?>_ 0 case (Fig. 9). Therefore, the stability constraints reported in Eqs. (35) and (36) are met. Second-order convergence is evident for both the central and the upwind advection schemes in the zero advective velocity case (Fig. 8). This is to be expected, as the only scheme in place is the secondorder diffusion scheme when advection is not present. In the case of _D._ _Dapelo_ _et_ _al._ _Journal of Computational Science 51 (2021) 101363_ Fig. 4. Convergence of the Lattice-Boltzmann model for several values of Pe, sharp start, periodical benchmark. Table 1 <u>Parameters</u> <u>of</u> <u>the</u> <u>Lattice-Boltzmann</u> <u>simulations</u> <u>for</u> _?>_ <u>0.</u> _?_ (m <sup>2</sup> ∕s) Pe Peg _?_ <sup>∗</sup> 0.01 10 0.909 0.54 0.005 20 1.818 0.52 0.002 50 4.545 0.508 0.001 100 9.09 0.504 0.0005 200 18.18 0.502 0.0003 333 30.3 0.5012 0.00025 400 36.4 0.501 0.0002 500 45.5 0.5008 0.0001 1 000 90.9 0.5004 0 ∞ ∞ 0.5 Fig. 5. Convergence of the Lattice-Boltzmann model for _?_ = 0, sharp start. non-zero advection (Fig. 9), the central scheme displays second-order convergence, while the upwind converges to the first order for _??_ ≥ 20. Considering numerical simulations were run for _?>_ 0, as expected, divergent behaviour is observed almost immediately for Nd _≲_ 0 _._ 5 regardless of the advection scheme. Consequently, only simulations with Nd _>_ 50 are reported in the rest of this article. Fig. 10 shows the outcome of simulations where the central advection scheme is used. In the cases with _?_ = 0 _._ 1 m∕s, the computational time was between 20 and 25 CPUs. Oscillations appear at Pe ≃100 (Fig. 10(a)), and eliminate the model’s predictive power for higher values of Pe (Fig. 10(b)). A comparison between Figs. 7(b) and 10(c) shows that the error associated to the simulations is larger than the one experienced in the Lattice-Boltzmann case. The simulations performed with the upwind scheme are reported in Fig. 11. In the cases with _?_ = 0 _._ 1 m∕s, the computational time was between 20 and 25 CPUs. Contrary to the upwind case (Fig. 10) and the Lattice-Boltzmann model (Fig. 7), the oscillations are suppressed and the instabilities removed—crucially, the model’s predictive power is maintained also in the case Pe → ∞. As predicted, the numerical diffusivity is relevant: a comparison between Fig. 11(c), Figs. 7(b) and 10(c) shows that the error associated to the upwind finite-difference simulations up to Pe = 1 000 is comparable (albeit slightly smaller) to the central finite-difference, and larger than the one experienced in the Lattice-Boltzmann case. _D._ _Dapelo_ _et_ _al._ _Journal of Computational Science 51 (2021) 101363_ Fig. 6. Lattice-Boltzmann model for _?_ = 0 and _??_ = 11, sharp start. 6(a): Non-zero diffusivity. The error amounted to 3.95% in the _?_ = 1 m <sup>2</sup> ∕s run, 3.69% in the _?_ = 0 _._ 1 m <sup>2</sup> ∕s, 3.68% in the _?_ = 0 _._ 01 m <sup>2</sup> ∕s and 3.86% in the _?_ = 0 _._ 001 m <sup>2</sup> ∕s at the time indicated in the legend. 6(b): Zero diffusivity. Fig. 7. Lattice-Boltzmann model for _?>_ 0 and _??_ = 11, sharp start. 7(a): _?_ = 0 _._ 1 m∕s at 40 s. 7(b): Error over Pe for _?_ = 0 _._ 1 m∕s at 40 s. Fig. 8. Convergence of the finite-difference model for _?_ = 0 m∕s and _?_ = 0 _._ 01 m <sup>2</sup> ∕s, sharp start. 8(a): central advection scheme. 8(b): upwind advection scheme. _6.5._ _Sharp_ _start:_ _finite-difference._ _negative-diffusivity_ _correction_ The convergence behaviour of the explicit finite-difference method with upwind advection scheme and negative-diffusivity correction is reported in Fig. 12. The model with the negative-diffusivity correction (Fig. 12(b)) is shown to display the same order of convergence of the pure upwind (Fig. 12(a)), but is able to display convergent behaviour at coarser meshes. In Fig. 13, the action of the variation of the negative-diffusivity parameter _?_ over the results of the simulations is displayed. In all cases, the computational time was between 25 and 35 CPUs with peaks up to 67 CPUs. The results show that the numerical diffusivity cannot be _D._ _Dapelo_ _et_ _al._ _Journal of Computational Science 51 (2021) 101363_ Fig. 9. Convergence of the finite-difference model for _?_ = 0 _._ 05 m∕s and _?_ = 0 _._ 01 m <sup>2</sup> ∕s, sharp start. 9(a): central advection scheme. 9(b): upwind advection scheme. Fig. 10. Explicit finite-difference model for _?>_ 0 and _??_ = 11, sharp start, central differentiation scheme for advection. 10(a): _?_ = 0 _._ 1 m∕s at 40 s. 10(b): _?_ = 2 _._ 0 m∕s at 40 s. 10(c): Error over Pe for _?_ = 0 _._ 1 m∕s at 40 s. removed; however, it is shown that the introduction of the negative diffusivity term allows a significant reduction of the error of up to 50%. Fig. 13(f) shows that, for Pe ⪆ 1 000, values of _?_ larger than 0.8 result in the appearance of oscillations; it is therefore necessary to strike a balance between precision ( _viz._, suppression of the numerical diffusion) and stability (that is, preventing oscillations). This balance is achieved by minimizing the value of the error as a function of _?_ and is achieved for _?_ = 0 _._ 8145 ± 0 _._ 0025 for Pe = 10, _?_ = 0 _._ 890 ± 0 _._ 001 for Pe = 100 and _?_ = 0 _._ 769 ± 0 _._ 001 for Pe = 1000. _6.6._ _Upscaling_ _tests_ _for_ _the_ _non-periodical_ _case_ In Fig. 14, a comparison between the Lattice-Boltzmann and the finite-difference submodels in terms of upscaling is reported. The results are given in terms of MLUPps (millions of lattice operations per _D._ _Dapelo_ _et_ _al._ _Journal of Computational Science 51 (2021) 101363_ Fig. 11. Explicit finite-difference model for _?>_ 0 and _??_ = 11, sharp start, upwind differentiation scheme for advection. 11(a): _?_ = 0 _._ 1 m∕s at 40 s. 11(b): _?_ = 2 _._ 0 m∕s at 40 s. 11(c): Error over Pe for _?_ = 0 _._ 1 m∕s at 40 s. Fig. 12. Convergence of the finite-difference model for _?_ = 2 m∕s and _??_ = 11, sharp start, corrected upwind scheme. 12(a): _?_ = 0 correction ( _viz._, pure upwind scheme). 12(b): _?_ = 0 _._ 6 correction. processor per second). The speed-up of a given lattice at a number of processors _?_ 1 with respect to the initial number of processors _?_ 0 is given as: ) ~~)~~ _._ (52) That gives, for instance, the value _?_ = 4 _._ 012 for 120 processors against a theoretical speed-up of _?_ <sup>th</sup> ≡ _?_ 1∕ _?_ 0 = 6 in the finite-difference model for the _?_ = 317 <sup>3</sup> lattice. It can be seen that both the model display similar upscaling characteristics. This proves that the models behave similarly in terms of parallelizability. _?_ = _?_ <u>1MLUPps</u> <sup>(</sup> _?_ <u>1</u> _?_ 0MLUPps <sup>~~(~~</sup> _?_ 0 _D._ _Dapelo_ _et_ _al._ _Journal of Computational Science 51 (2021) 101363_ Fig. 13. Convergence of the finite-difference model for _?_ = 0 _._ 1 m∕s and _??_ = 11, sharp start, corrected upwind scheme. 13(a): Pe = 10 at 40 s. 13(b): Pe = 10: Error over _?_ at 40 s. 13(c): Pe = 100 at 40 s. 13(d): Pe = 100: Error over _?_ at 40 s. 13(e): Pe = 1000 at 40 s. 13(f): Pe = 1000: Error over _?_ at 40 s. 7. Discussion The Lattice-Boltzmann advection–diffusion simulations with smooth initial conditions (Section 6.1) display the expected second-order convergence. The Lattice-Boltzmann advection–diffusion simulations with non-smooth initial conditions (Section 6.3), are found to retain second order convergence if they respect relaxed versions of the stability conditions proposed in the literature; otherwise, they demonstrate a deterioration of convergence from second to first order. Specifically, the Peg criterion (Eq. (27)) is found to be determinant, as transition _D._ _Dapelo_ _et_ _al._ _Journal of Computational Science 51 (2021) 101363_ Fig. 14. Scaling tests for the non-periodical case. 14(a): Lattice-Boltzmann Navier–Stokes solver coupled with the Lattice-Boltzmann advection–diffusion solver. 14(b): Lattice-Boltzmann Navier–Stokes solver coupled with the finite-difference advection–diffusion solver. from second to first order of convergence is observed to occur for Peg _≳_ 100 and in the case Peg = 0 (which makes it reasonable to suppose that the same happens in a sufficiently small neighbour of Peg = 0). Conversely, the stability criterion based on the simplified version of [20]’s observation (Eq. (28)) is found to be either irrelevant or a duplication of the Peg criterion for the numerical setup taken in consideration within this work. Lattice-Boltzmann and explicit finite-difference models are shown to be equivalent in terms of computational expense. The upwind finitedifference with the negative-diffusivity correction constitutes an exception, but the increase in computational expense is within 50%. Peaks of computational expense should be considered carefully, as they are likely to be generated by sudden increases of resource requirements in the laptop’s operating system. Therefore, the comparison between Lattice-Boltzmann and finite-difference models is limited to numerical precision and predictive power. A comparison of the error over Pe and a conversion of the latter into Peg for the Lattice-Boltzmann (Fig. 7(b)), the central (Fig. 10(c)) and the upwind finite-difference models (Fig. 11(c)) in the context of sharp initial conditions shows that: ( _i_ ) for Peg _<_ 10, the finite-difference model with the central scheme for advection produces the smallest amount of error; ( _ii_ ) for 10 _<_ Peg _<_ 100, the Lattice-Boltzmann is superior; and ( _iii_ ) the finite-difference model with the upwind scheme for advection is never competitive. These statements are justified by the following considerations: ( _i_ ) the central finite-difference performs better than the other methods for Peg _<_ 10 because it displays secondorder convergence whereas the upwind is only first-order convergent, and Lattice-Boltzmann’s convergence deteriorates to the first order for Peg → 0; ( _ii_ ) having the same ( _viz._, second) order of convergence, the central finite-difference performs worse than the Lattice-Boltzmann for 10 _<_ Peg _<_ 100 because of the onset of oscillations (see Fig. 10(a)), and this is predictable by comparing Eq. (25) to Eq. (38); ( _iii_ ) the upwind finite-difference model is inferior to the Lattice-Boltzmann because of its numerical diffusivity (see Fig. 11(a)). A comparison between Figs. 7(a), 10(a) and 11(a) shows that the Lattice-Boltzmann and the central finite-difference models rapidly lose their predictive power when Peg _>_ 100 because of the oscillations, whereas the upwind finite-difference remains stable up to Peg → ∞. Finally, Fig. 13 shows that the introduction of the negative-diffusivity correction brings about a significant reduction of the numerical diffusivity error. However, oscillations are re-introduced if the weight of the correction is too high, _i.e._ : _?_ → 1. Therefore, the optimum value of _?_ must be chosen in order to reduce the error as much as possible, whilst maintaining system stability through oscillation removal. The proposed method of numerically finding the minimum of the error in function of _?_ is shown to successfully provide this balance. However, the magnitude of the oscillations - and therefore the optimum value of _?_ - depends on the values of Pe; this is exemplified by the fact that three different optima were found for three different values of Pe. Consequently, the operation of finding the optimum value of _?_ by finding the minimum value of the error should be repeated for each application of the method, and each set of data if possible. 8. Conclusions The Lattice-Boltzmann advection–diffusion model is shown to possess advantages in terms of parallelizability comparable to pure LatticeBoltzmann, and to exhibit second order of convergence for smooth initial conditions. For non-smooth initial conditions, the order of convergence is shown to primarily depend on Peg. As this work is primarily concerned on assessing the dependence of Lattice-Boltzmann and explicit finite-difference models for advection–diffusion from Pe and Peg with the explicit case Pe _,_ Peg → ∞ in mind, the dependence of LatticeBoltzmann advection–diffusion’s order of convergence from Co and _?_ <sup>∗</sup> has not been thoroughfully assessed. Further work is required to address this specific gap and will also ( _i_ ) investigate Lattice-Boltzmann’s order of convergence for Peg → 0, and ( _ii_ ) find the critical value for Peg in the smooth-initial condition case. Based on the considerations reported in Section 7 on the mutual comparison between central finite-difference, upwind finite-difference and Lattice-Boltzmann advection–diffusion models, the following recommendations are given. a. Peg _<_ 10: use explicit finite-difference with the central differen tiation scheme for advection. b. 10 _<_ Peg _<_ 100: use Lattice-Boltzmann. c. 100 _<_ Peg _<_ ∞: use explicit finite-difference with the upwind differentiation scheme for advection and the negative-diffusivity correction. Tune the parameter _?_ in order to strike the optimum balance between stability and precision ( _viz._, find the minimum of the error as a single-variable function of _?_ ). Further work will also include the application of the explicit finitedifference models to the continuous boundary condition benchmark, and the extension of the comparative work to models implementing multiple-relaxation-time and two-relaxation-time Lattice-Boltzmann for advection–diffusion. _D._ _Dapelo_ _et_ _al._ _Journal of Computational Science 51 (2021) 101363_ CRediT authorship contribution statement Davide Dapelo: Conceptualization, Methodology, Software, Validation, Formal analysis, Data curation, Writing - original draft, Visualization, Funding acquisition. Stephan Simonis: Conceptualization, Methodology, Software, Validation, Formal analysis, Data curation, Writing - review & editing, Visualization. Mathias J. Krause: Software, Resources, Data curation, Writing - review & editing. John Bridgeman: Conceptualization, Resources, Writing - review & editing, Supervision, Project administration, Funding acquisition. Declaration of competing interest The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper. Acknowledgements This research was funded by the UKRI Engineering and Physical Sciences Research Council via EPSRC Grant (EP/R01485X/1, Computational Methods for Anaerobic Digestion Optimization, ‘‘CoMAnDO’’). The authors would like to thank the Bradford High Performance Computing (HPC) Service, where part of the computational work was carried out. The authors would also like to thank the Steinbuch Centre for Computing at KIT for providing access to their high performance computer ForHLR II, where part of the computations were carried out as part of the CPE project. The research leading to these results has received funding from the German Research Foundation (DFG 436212129). Appendix A. Supplementary data Supplementary material related to this article can be found online at [https://doi.org/10.1016/j.jocs.2021.101363.](https://doi.org/10.1016/j.jocs.2021.101363) References [1] B. Andersson, R. Andersson, L. [Håkansson,](http://refhub.elsevier.com/S1877-7503%0x2821%0x2900055-7/sb1) M. Mortensen, N. Defence, R. [Sudiyo, B. van Wachem, Computational Fluid Dynamics for Engineers, Cambridge](http://refhub.elsevier.com/S1877-7503%0x2821%0x2900055-7/sb1) University Press, [Cambridge,](http://refhub.elsevier.com/S1877-7503%0x2821%0x2900055-7/sb1) UK, 2012. [2] S. Succi, Lattice Boltzmann 2038, [Europhys.](http://refhub.elsevier.com/S1877-7503%0x2821%0x2900055-7/sb2) Lett. 109 (5) (2015) 50001. [3] P. Lallemand, L.s. Luo, M. Krafczyk, [W.a.](http://refhub.elsevier.com/S1877-7503%0x2821%0x2900055-7/sb3) Yong, The lattice Boltzmann method for nearly incompressible flows, [J.](http://refhub.elsevier.com/S1877-7503%0x2821%0x2900055-7/sb3) Comput. Phys. (2020) 109713. [4] M.J. Krause, A. Kummerlaender, S.J. [Avis,](http://refhub.elsevier.com/S1877-7503%0x2821%0x2900055-7/sb4) H. Kusumaatmaja, D. Dapelo, F. Klemens, M. Gaedtke, N. Hafen, A. [Mink,](http://refhub.elsevier.com/S1877-7503%0x2821%0x2900055-7/sb4) R. Trunk, J.E. Marquardt, M.-L. Maier, [M. Haussmann, S. Simonis, OpenLB-Open source lattice Boltzmann code, Comput.](http://refhub.elsevier.com/S1877-7503%0x2821%0x2900055-7/sb4) Math. Appl. 81 [(2021)](http://refhub.elsevier.com/S1877-7503%0x2821%0x2900055-7/sb4) 258–288. [5] D. Dapelo, R. Trunk, M.J. Krause, J. [Bridgeman,](http://refhub.elsevier.com/S1877-7503%0x2821%0x2900055-7/sb5) Towards Lattice–Boltzmann modelling of unconfined gas mixing in anaerobic digestion, Comput. & Fluids 180 [(2019)](http://refhub.elsevier.com/S1877-7503%0x2821%0x2900055-7/sb5) 11–21. [6] D. Dapelo, F. Alberini, J. [Bridgeman,](http://refhub.elsevier.com/S1877-7503%0x2821%0x2900055-7/sb6) Euler–Lagrange CFD Modelling of unconfined gas mixing in anaerobic [digestion,](http://refhub.elsevier.com/S1877-7503%0x2821%0x2900055-7/sb6) Water Res. 85 (2015) 497–511. [7] E.G. Flekkoy, Lattice Bhatnagar–Gross–Krook models for miscible fluids, Phys. Rev. E (1993) [http://dx.doi.org/10.1103/PhysRevE.47.4247.](http://dx.doi.org/10.1103/PhysRevE.47.4247) [8] D. Wolf-Gladrow, A lattice Boltzmann [equation](http://refhub.elsevier.com/S1877-7503%0x2821%0x2900055-7/sb8) for diffusion, J. Stat. Phys. 79 (5–6) [(1995)](http://refhub.elsevier.com/S1877-7503%0x2821%0x2900055-7/sb8) 1023–1032. [9] T. Krüger, H. Kasumaatmaja, A. Kuzmim, O. Shardt, G. Silva, E.M. Viggen, The Lattice Boltzmann Method, No. March 2015, Springer, 2017, pp. 1–18, [http://dx.doi.org/10.1007/978-3-319-44649-3,](http://dx.doi.org/10.1007/978-3-319-44649-3) [arXiv:arXiv:1011.1669v3.](http://arxiv.org/abs/1011.1669v3) [10] I. Ginzburg, Equilibrium-type and [link-type](http://refhub.elsevier.com/S1877-7503%0x2821%0x2900055-7/sb10) lattice Boltzmann models for generic advection and anisotropic-dispersion [equation,](http://refhub.elsevier.com/S1877-7503%0x2821%0x2900055-7/sb10) Adv. Water Resour. 28 (11) (2005) [1171–1195.](http://refhub.elsevier.com/S1877-7503%0x2821%0x2900055-7/sb10) [11] N.I. Prasianakis, S.S. Chikatamarla, [I.V.](http://refhub.elsevier.com/S1877-7503%0x2821%0x2900055-7/sb11) Karlin, S. Ansumali, K. Boulouchos, Entropic lattice Boltzmann method [for](http://refhub.elsevier.com/S1877-7503%0x2821%0x2900055-7/sb11) simulation of thermal flows, Math. Comput. Simulation 72 (2–6) (2006) 179–183. [12] L. Zheng, B. Shi, Z. Guo, Multiple-relaxation-time model for the correct thermo hydrodynamic equations, Phys. Rev. E 78 (2) (2008) [http://dx.doi.org/10.1103/](http://dx.doi.org/10.1103/PhysRevE.78.026705) [PhysRevE.78.026705.](http://dx.doi.org/10.1103/PhysRevE.78.026705) [13] L. Deng, Y. Zhang, Y. Wen, B. Shan, [H.](http://refhub.elsevier.com/S1877-7503%0x2821%0x2900055-7/sb13) Zhou, A fractional-step thermal lattice Boltzmann model for high Peclet [number](http://refhub.elsevier.com/S1877-7503%0x2821%0x2900055-7/sb13) flow, Comput. Math. Appl. 70 (5) (2015) [1152–1161.](http://refhub.elsevier.com/S1877-7503%0x2821%0x2900055-7/sb13) [14] B. Servan-Camas, F.T. Tsai, Lattice [Boltzmann](http://refhub.elsevier.com/S1877-7503%0x2821%0x2900055-7/sb14) method with two relaxation times for advection-diffusion equation: Third [order](http://refhub.elsevier.com/S1877-7503%0x2821%0x2900055-7/sb14) analysis and stability analysis, Adv. Water Resour. 31 [(8)](http://refhub.elsevier.com/S1877-7503%0x2821%0x2900055-7/sb14) (2008) 1113–1126. [15] B. Servan-Camas, F.T. Tsai, [Non-negativity](http://refhub.elsevier.com/S1877-7503%0x2821%0x2900055-7/sb15) and stability analyses of lattice Boltzmann method for [advection-diffusion](http://refhub.elsevier.com/S1877-7503%0x2821%0x2900055-7/sb15) equation, J. Comput. Phys. 228 (1) (2009) [236–256.](http://refhub.elsevier.com/S1877-7503%0x2821%0x2900055-7/sb15) [16] J.P. Weiss, Numerical Analysis of [LBMs](http://refhub.elsevier.com/S1877-7503%0x2821%0x2900055-7/sb16) for the Heat Equation on a Bounded Interval (Ph.D. thesis), [Universitätsverlag](http://refhub.elsevier.com/S1877-7503%0x2821%0x2900055-7/sb16) Karlsruhe, 2006, p. 208. [17] M.J. Krause, S. Avis, D. Dapelo, N. Hafen, M. Haußmann, M. Gaedtke, F. Klemens, A. Kummerländer, M.-L. Maier, A. Mink, J. Ross-Jones, S. Simonis, R. Trunk, OpenLB Release 1.3: Open Source Lattice Boltzmann Code, Zenodo, 2019, [http://dx.doi.org/10.5281/zenodo.3625967.](http://dx.doi.org/10.5281/zenodo.3625967) [18] P.L. Bhatnagar, E.P. Gross, M. Krook, A model for collision processes in gases. I. Small amplitude processes in charged [and](http://refhub.elsevier.com/S1877-7503%0x2821%0x2900055-7/sb18) neutral one-component systems, Phys. Rev. 94 (3) [(1954)](http://refhub.elsevier.com/S1877-7503%0x2821%0x2900055-7/sb18) 511–525. [19] S. Simonis, S. Simonis, M. Frank, M.J. [Krause,](http://refhub.elsevier.com/S1877-7503%0x2821%0x2900055-7/sb19) On relaxation systems and their relation to discrete velocity [Boltzmann](http://refhub.elsevier.com/S1877-7503%0x2821%0x2900055-7/sb19) models for scalar advection-diffusion equations, Phil. Trans. R. Soc. A (2020) 20190400. [20] X.D. Niu, C. Shu, Y.T. Chew, T.G. [Wang,](http://refhub.elsevier.com/S1877-7503%0x2821%0x2900055-7/sb20) Investigation of stability and hydro dynamics of different lattice Boltzmann models, J. Stat. Phys. 117 (3–4) (2004) [665–680.](http://refhub.elsevier.com/S1877-7503%0x2821%0x2900055-7/sb20) [21] C. Hirsch, Numerical Computations [of](http://refhub.elsevier.com/S1877-7503%0x2821%0x2900055-7/sb21) Internal and External Flows, Vol. 1, [Butterworth-Heinemann,](http://refhub.elsevier.com/S1877-7503%0x2821%0x2900055-7/sb21) Oxford, 2007. [22] A. Mojtabi, M.O. Deville, [One-dimensional](http://refhub.elsevier.com/S1877-7503%0x2821%0x2900055-7/sb22) linear advection-diffusion equation: Analytical and finite element solutions, Comput. & Fluids 107 (2015) 189–195. [23] D. Kuzmin, A Guide to Numerical Methods for Transport Equations, Uni versity Erlangen-Nuremberg, 2010, [https://www.mathematik.uni-dortmund.de/](https://www.mathematik.uni-dortmund.de/%7ekuzmin/Transport.pdf) [~kuzmin/Transport.pdf.](https://www.mathematik.uni-dortmund.de/%7ekuzmin/Transport.pdf) Davide Dapelo After completing his degree in theoretical physics in Genoa, Italy, Davide started his Ph.D. in civil engineering in Birmingham in 2012 and completed it in 2016. Since 2015, Davide has been employed in a number of postdoctoral positions in Birmingham and in Bradford. Davide’s scientific interest has been numerical modelling of multiphase non-Newtonian flow applied in water managing and, more specifically, anaerobic digestion for wastewater treatment. After using and developing finite-volume CFD models, Davide has focussed his attention to developing new models and methodologies for the Lattice-Boltzmann method. Stephan Simonis is a doctoral student at the Institute for Applied and Numerical Mathematics, at Karlsruhe Institute of Technology (KIT), and contributes to the open source C++ library OpenLB. He obtained a B.Sc. and M.Sc. in Mathematics at KIT in Germany and KTH Royal Institute of Technology in Sweden. His research focuses on the mathematical background and numerical aspects of discrete velocity models, relaxation systems and lattice Boltzmann methods. Mathias J. Krause studied mathematics with economics at the Universität Karlsruhe (TH) in Germany and the Cardiff University in Wales (2006). In 2010, he received a doctorate at the Karlsruhe Institute of Technology (KIT). Since 2013, he heads the interdisciplinary Lattice Boltzmann Research Group (LBRG) at KIT. His research interests are mainly dedicated to the fields of applied mathematics, applied computer science with focus on HPC, CFD and optimization under the constraints of PDE. He is initiator and main author of OpenLB. His work was honoured with several prizes and a membership as WIN-Kollegiat at the Heidelberg Academy of Science. John Bridgeman is Deputy Vice-Chancellor (Research, Innovation & Engagement) and Professor of Environmental Engineering at the University of Bradford, UK. He is a Chartered Civil Engineer and a Chartered Scientist, and a Fellow of the Institution of Civil Engineers, the Chartered Institution of Water and Environmental Management, the International Water Association and the Institute of Mathematics and its Applications. Bridgeman’s research focuses on experimental and numerical approaches to address water security and resource efficiency. Areas of interest include CFD and lattice Boltzmann modelling of water and wastewater treatment processes, and the development of novel water quality assessment tools.

섹션 본문 99문단 · 36,992자

(제목 없음)

1A B S T R A C TTraditional Lattice-Boltzmann modelling of advection-diffusion flow is affected by numerical instability if the advective term becomes dominant over the diffusive (i.e., high-Péclet flow). To overcome the problem, two 3D one-way coupled models are proposed. In a traditional model, a Lattice-Boltzmann Navier-Stokes solver is coupled to a Lattice-Boltzmann advection-diffusion model. In a novel model, the Lattice-Boltzmann Navier-Stokes solver is coupled to an explicit finite-difference algorithm for advection-diffusion. The finite-difference algorithm also includes a novel approach to mitigate the numerical diffusivity connected with the upwind differentiation scheme.The models are validated using two non-trivial benchmarks, which includes discontinuous initial conditions and the case Pe g → ∞ for the first time, where Pe g is the grid Péclet number. The evaluation of Pe g alongside Pe is discussed. Accuracy, stability and the order of convergence are assessed for a wide range of Péclet numbers. Recommendations are then given as to which model to select depending on the value Pe g -in particular, it is shown that the coupled finite-difference/Lattice-Boltzmann provide stable solutions in the case Pe → ∞, Pe g → ∞.

Introduction

2Advection-diffusion occurs in a wide range of fluid-flow problems, including transport of chemicals, natural convection heat transfer when thermal expansion can be ignored, assessment of mixing through a passive scalar tracer, and many more.

3Over the last decades, numerical modelling -in particular, computational fluid dynamics (CFD) -has been extensively used as a cheap but robust alternative to often lengthy and expensive experiments [1]. The lattice-Boltzmann is a particular type of explicit finite-difference method, with a tuneable diffusivity parameter [2]; this characteristics provides an advantage over traditional explicit finite-difference methods, as it allows the use of much larger timesteps than what would otherwise required to maintain stability. More significantly, it represents a valid alternative to implicit/segregated finite-volume CFD methods traditionally used to solve the Navier-Stokes equations because of a number of advantages in terms of numerical efficiency and parallelizability, viz.: (i) full explicitness, with no internal loop being required-therefore, every timestep is updated through a limited and well-defined number of floating-point operations; (ii) separation between non-linear and non-local part of the algorithm with the latter * Correspondence to: B2.20, Chesham Building, Bradford BD7 1DP, United Kingdom. E-mail address: ddapelo@bradford.ac.uk (D. Dapelo).

4being usually limited to first neighbour-access, thereby allowing large parallel runs with no significant efficiency loss due to non-scalable inter-processor communication; and (iii) structure simplicity, allowing relatively simple extensions towards a wide variety of phenomena [2][3][4]. [5] showed that a Lattice-Boltzmann model for laboratory-scale gas mixing on a non-Newtonian fluid performed around 180 times faster than a finite-volume analogue [6], and ran on ten times more processors with no apparent loss of efficiency.

5Whilst the Lattice-Boltzmann method has been applied to 1D and 2D advection-diffusion problems [7][8][9], the models demonstrate numerical instability in advection-dominant flow (high Péclet number) as the relaxation time approaches the critical value of 1/2. Proposed solutions valid for the 1D, 2D and 3D [10][11][12] mitigate the problem, but still exhibit instability for Pe ⪆ 10 4 . A more recent fractionalstep method [13] requires doubling the number of timesteps and the number of lattice points across the coordinate directions; furthermore, it performs calculations requiring access to second-neighbour lattice sites, thereby compromising parallelizability. Therefore, there is clear a need for an advection-diffusion Lattice-Boltzmann method with the https://doi.org/ 10 Numerical diffusion term connected to the upwind differentiation scheme for advection, m −3 Unit vector along the positive direction of the coordinate Navier-Stokes one-particle density function, kg m −3 Navier-Stokes discretized one-particle density function relative to the th lattice direction, kg m −3

(eq)

6Navier-Stokes equilibrium one-particle density function, kg m −3 characteristics of high Péclet number stability, and requiring access to first-neighbouring cells only.

7Within this article, two Lattice-Boltzmann models are proposed to reproduce a diffusive scalar field concentration advected by a hydrodynamic velocity field. In both the models, hydrodynamics and (eq) Navier-Stokes discretized equilibrium one-particle density function relative to the th lattice direction, kg m −3 Advection-diffusion discretized one-particle density function relative to the th lattice direction, kg m −3

8Advection-diffusion discretized equilibrium one- Millions of lattice updates per processor per second advection-diffusion are simulated in a coupled way. The two models are composed of a Lattice-Boltzmann submodel to solve hydrodynamics, and a second submodel for advection-diffusion. The coupling occurs one-way, viz.: the solution to the hydrodynamics subproblem influences the advection-diffusion solution, but the converse does not occur. In the ''traditional'' model, the advection-diffusion submodel is defined as a Lattice-Boltzmann model, whilst in the ''novel'' model, an explicit finite-difference submodel is used. The rationale for introducing an explicit finite-difference submodel for advection-diffusion is based on the fact that finite-difference is the most obvious choice of model when the computational domain is composed of a cubic lattice (as is the case of the numerical work presented here), and, for the very specific case of an explicit method with access to first neighbours only, it maintains the same level of parallelizability and efficiency as the standard Lattice-Boltzmann method. Scaling tests are performed in order to verify this claim. In both models, at each timestep, the Lattice-Boltzmann submodel solves the Navier-Stokes equations to update the hydrodynamics; the coupling is performed by passing the obtained velocity field to the advection-diffusion submodel; and finally, the latter solves the advection-diffusion equation and updates the scalar field concentration.

9In the literature cited above, the assessments are performed in terms of the Péclet number, or other numbers tracing the balance between advective and a given form of diffusive (chemical, or thermal) transport. This approach provides a good assessment of the physics underlying the phenomena being analysed, but does not necessarily provide a reliable assessment of numerical stability. [9] defines the grid Reynolds number Re g from lattice quantities, and identifies that a simulation is stable if Re g ≳ 10, heuristically meaning that ''The lattice should always be sufficiently fine to resolve local vortices''. [14,15] introduce the grid Péclet number Pe g as the analogue to Re g in advection-diffusion models. This approach implies a separation between physical interpretation of a process (i.e., the balance between advective and diffusive transport), which is expressed through ℜ, Pe, . . . ; and stability assessment of a numerical simulation (i.e., whether or not the lattice is fine enough to resolve the local vortices), which is expressed through Re g , Pe g , . . . . In parallel with the assessment of Pe g , the evaluation of the numerical stability is also performed in [9,14,15] through methodologies involving the mutual balance between Re g or Pe g , the lattice relaxation time (or in the advection-diffusion) and the characteristic velocity or the courant number Co ≡ ∕ (where is the lattice spacing and the timestep). The above-mentioned work does not explicitly consider the case of zero diffusivity, i.e.Pe g → ∞ ; in fact, it can be implied from [9] and [14] that the simulations are intrinsically unstable in this specific case. However, an explicit assessment of the case Pe g → ∞ is justified by its importance in applications, e.g. in assessing mixing quality through scalar tracer concentration, or wherever diffusive processes are negligible altogether. For this reason, the work described within this article is focussed on the assessment of model stability in terms of Pe g alone, and the case Pe, Pe g → ∞ is explicitly taken into consideration for the first time within the research concerning the Lattice-Boltzmann method; the balance between Pe g , Co and relaxation time is considered only for the purpose of verifying the coherence of the simulations. In order to provide the most possible robust assessment, two benchmarks are implemented in a non-trivial way as a Gaussian concentration packet or a sinusoidal wave spreading and being advected by a constant velocity field, with a tracer concentration presenting a sharp discontinuity as initial condition; within both periodical and non-periodical computational domains. Previous work [16] shows that Lattice-Boltzmann advection-diffusion observes second-order convergence on simulations starting from continuous initial conditions, and first-order if the initial condition presents a discontinuity. This reduction of the order of convergence is explained by the fact that, in the discontinuous case, the eigenvalues of the Lattice-Boltzmann evolution matrix are close to −1, thereby causing the onset of oscillations. However, [16] is limited in analysis to 1D simulations: within this work, the analysis is extended to the 3D case, thereby providing a complete assessment of the convergence for the model and filling the knowledge gap in the literature.

10All the simulations are performed using OpenLB (www.openlb.net) version 1.3 [4,17].

11This article is structured as follows. In Section 2, the two models are outlined. In Section 3, the Navier-Stokes Lattice-Boltzmann model and the advection-diffusion Lattice-Boltzmann are described. Then, the explicit finite-difference model is described in Section 4. Two benchmarks to assess performance and stability are described in Section 5. The results are reported in Section 6, and recommendations on which model to use depending on the value of Pe g are given in Section 7. Finally, conclusions are drawn in Section 8.

General outline of the model

12Both the proposed coupled and the standard models follow the general algorithm described below.

Lattice-Boltzmann modelling

13The Lattice-Boltzmann model is a mesoscopic model insofar as it aims at finding a trajectory ( , , ) in the phase space

14The ''one-particle density function'' ( , , ) describes the probability of finding one particle of fluid within the elemental cube ( , + ) with a velocity comprised within the cubic interval ( , + ) at the time . The observable fields (viz., density, velocity and shear stress) correspond to the particle density function's zeroth, first and second moments respectively [9]:

15The model solves the Boltzmann equation:

16Algorithm 1: General algorithm 1 Initialize hydrodynamics (density field and velocity field ) and advection-diffusion characteristics (scalar concentration field ); 2 for timestep: = 0 to max by do 3 Hydrodynamics update: a standard Lattice-Boltzmann submodel solves the weakly-compressible Navier-Stokes equations:

17(with being the pressure and the dynamic viscosity) and updates the velocity field ;

4

18Pass the updated velocity field to the submodel for advection-diffusion; 5 Advection-diffusion update: an explicit finite-difference submodel (or an advection-diffusion Lattice-Boltzmann submodel for the comparison model) solves the advection-diffusion equation:

19(with being the diffusivity) and updates the concentration field ;

20Eq. (7) describes continuity for in the phase space, plus a source-sink term arising from inter-particle collisions. In the diluted gas hypothesis, only binary particle collisions contribute to the collision operator . Under the isotropy assumption, it is possible to model the potentially extremely complicated operator [18] as an average, relaxing towards the equilibrium particle density function (eq) :

21where is the relaxation time, and (eq) is the Maxwell equilibrium distribution [9]:

22s is the speed of sound, and density and velocity are evaluated through Eqs. (4) and (5). Space is discretized as a cubic lattice of lattice size , time is subdivided into timesteps of interval , and the three-dimensional velocity space is discretized as a finite set of vectors

23pointing to the zeroth, first, second and third neighbours of a generic lattice site, with moduli respectively √ 0, √ 1, √ 2 and √ 3 times ∕ . A given discretization is conventionally identified by a tag D Q , with the dimensionality of the problem and the dimension of the discrete velocity space. ( , , ) is redefined over the discretized lattice and timesteps, and rewritten as a set ( , ), each indicating the probability of finding a particle with the corresponding discretized velocity . The integrals in Eqs. (4), (5) and (6) are redefined as summations over the velocity set:

24The error arising from the discretization of the velocity set is cancelled by writing the Maxwell equilibrium function (Eq. (9)) in terms of orthonormal Hermite polynomials up to the second order:

25where the weights and the speed of sound are defined in a standard way for the specific D Q lattice, with the latter usually being defined as:

26The Boltzmann Eq. (7), considering the BGK assumption (Eq. (8)), becomes the Lattice-Boltzmann Equation:

27(

28The updating process for each lattice site at a given timestep comprises two steps. First: a local, non-linear collision:

29Then: a linear, non-local streaming :

30In this way, the adiabatic dynamics with a compressibility error of Ma 2 with Ma being the Mach number, are recovered. In the limit Ma ≪ 1, the Lattice-Boltzmann Eq. (15) reproduces the Navier-Stokes (Eqs. (1)) and (2) in the incompressible limit [9], with pressure and kinematic viscosity defined as:

Lattice-Boltzmann model for the advection-diffusion equations

31A comparison between the advection-diffusion (Eq. (3)) and the Navier-Stokes equation for the momentum (Eq. (2)) shows that the latter can be regarded as an advection-diffusion equation for the momentum density vector in place of the scalar concentration . This analogy allows the export of the same model developed in Section 3 for the Navier-Stokes case, to the advection-diffusion [9]. Alternatively, it is possible to derive the Lattice-Boltzmann advection-diffusion model directly from the macroscopic equation (3) following the approach of [19]. Either way, a discretized one-particle density function is conventionally defined as ( , ), and the concentration is obtained from its zeroth moment:

32The only difference from the Navier-Stokes case is that higher-order moments of do not possess physical meaning because only one single scalar conservation law (viz., mass) is approximated in the advection diffusion equation (Eq. (3)), and therefore are not evaluated. In fact, the physical advection velocity appearing in Eq. (3) is imposed externally (viz., copied from the hydrodynamics model). The rest of the model is left unchanged: i.e.the definition of speed of sound as a numerical constant (Eq. (14)) is maintained unaltered, the Lattice-Boltzmann equation is defined as in Eq. (15):

33(with an advection-diffusion relaxation time ), the equilibrium function follows Eq. (13) with in place of :

34and the diffusivity takes the place of the kinematic viscosity in Eq. (18):

35The same lattice of the Lattice-Boltzmann Navier-Stokes model is used in order to avoid interpolation, and with the same timestep to simplify the time iteration. Consequently, the values of the speed of found for the advection-diffusion and the Navier-Stokes models are the same.

Stability constraint of the lattice-Boltzmann model for advectiondiffusion

36The Péclet number is defined as:

37where and are respectively the length and velocity scales of a given problem. As the Reynolds number is the ratio of inertial to viscous forces in the Navier-Stokes case, Pe can be interpreted as the balance between advective and diffusive transport. The advection-diffusion relaxation time approaches the stability-critical value of 1∕2 when Pe grows, exactly as in the Navier-Stokes case if ℜ grows [13].

38Following the analogy between Navier-Stokes and advectiondiffusion, a first criterion to assess advection-diffusion Lattice-Boltzmann can be outlined through defining the grid Péclet number following [9]:

39The stability criterion reads:

40Within this work, the dimensionless version * of the quantity is computed from its units of measure { } as follows:

41Considering that, within this work, we have = with being the number of cells comprised within , it follows that Pe g can be equivalently defined as:

42A second criterion for advection-diffusion Lattice-Boltzmann stability comes from the same analogy. [20] studied the neutral stability Co- * curves, and [9] provided a simplified mathematical expression to defined the stability domain of the Lattice-Boltzmann method. This expression can be extended to the advection-diffusion as follows:

43As the focus of this work is to compare the stability of the Lattice-Boltzmann and the explicit finite-difference advection-diffusion models in terms of Pe g and in the specific case Pe g → ∞, the criterion of Eq. (25) is mainly employed. The robustness of the subsequent conclusions is then assessed through the criterion of Eq. (28).

Finite-difference model for the advection-diffusion equations

44An explicit finite-difference discretization [21] of the macroscopic advection-diffusion equation (3 is performed on the same lattice of the Lattice-Boltzmann Navier-Stokes model in order to avoid interpolation, and with the same timestep to simplify the time iteration:

45The ''new'' superscript indicates that the value of the concentration field is referred to the timestep being currently resolved; conversely, its absence indicates that the value of the concentration field refers to the previous timestep. This formulation allows an explicit evaluation of new without timestep-internal loops, as in the Lattice-Boltzmann case. The differentiation schemes [ ⋅ ] sch are chosen as: the standard second-order central scheme for the diffusion term; and either standard first-order upwind, or standard second-order central schemes for the advection term. In three dimensions, the central diffusion scheme reads:

46The central advection scheme reads:

47The upwind:

48with:

49The orders of convergence of the schemes above (Eqs. (30)-(32)) can be verified by substituting Taylor expansions of ( ±̂) around ( ) in the respective equations.

Stability constraints of the finite-difference model for advectiondiffusion

50Substituting the appropriate differentiation schemes (Eqs. (30)-(32)), it is possible to rewrite Eq. (29) in the following general form:

51As a necessary condition for the algorithm to be stable, all the coefficients in the equation above should be non-negative. This requirement, in turn, poses constraints on the values of velocity, diffusivity, lattice spacing and timestep, as follows.

52A first constraint comes from the requirement that 0 should be non-negative. This is related to the explicit nature of the model, and consists of a superior limit to the timestep value. Within this work, it is formulated as follows:

53Whilst this constraint usually poses serious limits to explicit methods, it does not prevent a successful application of the coupled model because in Lattice-Boltzmann modelling, the timestep value is usually kept low by the assumption ∕ ∼ Ma ≪ 1. Conversely, once and are chosen following the balance between accuracy, stability and numerical expense usually performed in Lattice-Boltzmann modelling [9], Eq. (35) poses a superior limit to the diffusivity.

54A second constraint comes from the requirement that − should be non-negative in the case of the central advection scheme:

55This constraint poses an inferior limit to the ratio of diffusivity over reference velocity. A comparison between Eqs. (27) and (36) shows that:

56Therefore, the constraint of Eq. (36) is equivalent to a constraint on Pe g :

57As in Section 3.2, the interest is directed towards the stability criterion of Eq. (38) in order to compare the stability of the Lattice-Boltzmann and the explicit finite-difference advection-diffusion models in terms of Pe g and in the specific case Pe g → ∞. The criterion of Eq. (35) is used as a background verification of the applicability of the explicit finite-difference method.

Negative-diffusivity correction

58Although Eq. (36) poses a strict stability constraint only if the central advection scheme is adopted, bespoke numerical results in the upwind advection case show the presence of numerical diffusivity along the direction of the flow, proportional to . This is due to the fact that the first truncated term in Eq. (32), corresponding to second-ordered Taylor expansions of ( ±̂) around ( ), takes the form of:

59A comparison of this term to the diffusion differentiation scheme (Eq. (30)) shows that this term can be interpreted as an artificial anisotropic diffusivity contribution. In order to mitigate this effect, a novel approach, consisting of multiplying the artificial diffusivity (Eq. (39)) by a tuning factor and subtracting it from the diffusivity scheme, is proposed. The secondorder central differentiation scheme for diffusivity is thus redefined as follows when employed in combination with the upwind scheme for advection:

Numerical work

60A periodical and a non-periodical benchmark are defined. Over the periodical benchmark, simulations are performed through only the Lattice-Boltzmann advection-diffusion model, with both smooth and sharp initial conditions for the concentration field . Over the nonperiodical benchmark, simulations are performed through both the Lattice-Boltzmann and the finite-difference advection-diffusion models, but only with a sharp initial condition. As detailed below, the smoothstart simulations reproduce a sinusoid, and the sharp-start one a series of Gaussian packets.

Periodical benchmark

61A simplified version of the general algorithm (Section 2) is appliedspecifically, the hydrodynamics is not solved, and a constant velocity field = (2.5, 2.5, 2.5) m∕s is passed to the advection-diffusion model. A time-averaged discrete relative 2 -error norm is calculated via:

62where:

63is the numerical outcome of the simulations, while an is the bespoke analytical solution.

Non-periodical benchmark

64The full general algorithm is applied as described in Section 2. The computational domain (Fig. 1) consists of a square-section pipe with = = 1 m and ≫ being set depending on the specific run. The flow velocity is a constant with magnitude of 0, 0.1 or 2 m∕s, directed towards the direction and is once again set depending on the specific run. The boundary conditions for the Lattice-Boltzmann Navier-Stokes solver are: inlet and outlet are defined as in the figure; free-slip on the walls. For the advection-diffusion solvers, the boundary conditions on the wall are defined as: bounce-back for the Lattice-Boltzmann, no-penetration for the finite-difference. The potential error arising from setting bounce-back and no-penetration conditions to inlet and outlet is avoided by choosing ≫ , and by stopping the simulations before the Gaussian packet's 3 tail reached the outlet.

65The Navier-Stokes lattice relaxation time is set to = 0.8. The timestep is determined under diffusive scaling through the prescription = 2 ⋅ 1 s∕m 2 . Unless otherwise specified, it is set = 11. It follows that Co amounts to 0, 0.009 and 0.182 for corresponding respectively to 0, 0.1 and 2.0 m∕s.

66Simulation results and errors are evaluated at each timestep separately, in terms of the value of along the dashed line in Fig. 1 (indicated as below). Only the last timestep is considered for further analysis. The error is computed as the 2 distance between numerical and analytical values of over the 2 norm of the analytical solution, evaluated along the same dashed line:

67(43)

Smooth initial condition

68The initial condition is set as:

69It can be demonstrated [22] that the benchmark possesses the following analytical solution:

70An example of solution is provided in Fig. 2.

Non-periodical

71A spreading Gaussian density packet advecting along is modelled. The initial condition for is defined as:

72The initial position 0 is either 0 or ∕4 depending on the particular run. It can be demonstrated that the benchmark possesses the following analytical solution:

73and the initial condition for the analytical solution is the Dirac's delta:

74A proof of the mutual coherence of Eqs. (46), (47) and (48) is given in the Supplementary Material.

Periodical

75A superposition of spreading Gaussian density packets advecting along is modelled. The initial condition for is defined as:

76It can be demonstrated [23] that the benchmark possesses the following analytical solution:

77and the initial condition for the analytical solution is the Dirac's comb:

78The proof of the mutual coherence of Eqs.

Results

79A series of numerical simulations reproducing the smooth-start benchmark was performed on a Lenovo X380 laptop equipped with a 4-core, 8-thread Intel Core i5-8250U CPU. Another series, reproducing the sharp-start, was performed on a Dell XPS 13 9600 laptop equipped with a 4-core, 8-thread Intel Core i7-1065G7. A third series of simulations for testing purposes was computed on a maximum of 10 nodes with two deca-core Intel Xeon E5-2660 v3 each. Finally, the scaling-up tests were performed on three 40-core Lenovo ThinkSystem SR65 units.

Smooth start: Lattice-Boltzmann

80The convergence behaviour of the Lattice-Boltzmann model for advection-diffusion on the smooth start case is reported in Fig. 3. The second-order convergence is evident.

Sharp start on the periodical benchmark: Lattice-Boltzmann

81The convergence behaviour of the Lattice-Boltzmann model for advection-diffusion on the smooth start case is reported in Fig. 4. A deterioration of the convergence from second to first order can be observed, as noted by [16]. However, such deterioration occurs only for Pe g ≲ 100-that is, a relaxed version of the stability criterion of Eq. (25). In other words, the violation of the above-mentioned criterion leads to results that still retain stability, but at the price of a lower order of convergence.

82Concerning the second stability criterion (Eq. (28)), it can be verified that the simulations with Pe = 10 000 and Pe = 100 000 fail the second line of Eq. (28), despite the fact that the simulations with Pe = 10 000 and Pe g ≲ still display second-order convergence.

Sharp start on the non-periodical lattice: Lattice-Boltzmann

83The convergence behaviour of the Lattice-Boltzmann model for advection-diffusion with Pe g = 0 on the sharp start case is reported in Fig. 5. The value of diffusivity is set to = 0.01 m 2 ∕s. In this case, the first-order convergence is evident, as in [16].

84In Fig. 6(a), the value of along the coordinate is plotted for = 0 and for values of comprised between 0.001 and 1 m 2 ∕s. The error is shown to be below 4%. However, Fig. 6(b) evidences the presence of oscillations for = 0 m 2 ∕s.

85The results of tests performed on > 0, corresponding to Co = 0.00909, are shown in Fig. 7. The corresponding values of , Pe, Pe g and * are reported in Table 1. In all the cases, the computational time was between 20 and 25 CPUs. Fig. 7(a) shows the onset of oscillations for Pe ⪆ 400, which results in an increase in the error (Fig. 7(b)). From this value of Pe onwards, the simulations are also found to fail the stability criterion of Eq. (28). Oscillations dominate the figure for Pe → ∞ and eliminate the model's predictive power.

Sharp start: finite-difference

86The convergence behaviour of the explicit finite-difference model is reported in Figs. 8 (for diffusive-only systems) and 9 (for > 0). In the case > 0, the same values of , Pe and Pe g of Section 6.3 and Table 1 are used. Nd = 50 in all the runs, while NU is infinite in the = 0 runs (Fig. 8) and spans from 2 to 11.6 in the > 0 case (Fig. 9). Therefore, the stability constraints reported in Eqs. (35) and (36) are met. Second-order convergence is evident for both the central and the upwind advection schemes in the zero advective velocity case (Fig. 8). This is to be expected, as the only scheme in place is the secondorder diffusion scheme when advection is not present. In the case of non-zero advection (Fig. 9), the central scheme displays second-order convergence, while the upwind converges to the first order for ≥ 20. Considering numerical simulations were run for > 0, as expected, divergent behaviour is observed almost immediately for Nd ≲ 0.5 regardless of the advection scheme. Consequently, only simulations with Nd > 50 are reported in the rest of this article. Fig. 10 shows the outcome of simulations where the central advection scheme is used. In the cases with = 0.1 m∕s, the computational time was between 20 and 25 CPUs. Oscillations appear at Pe ≃ 100 ( Fig. 10(a)), and eliminate the model's predictive power for higher values of Pe (Fig. 10(b)). A comparison between Figs. 7(b) and 10(c) shows that the error associated to the simulations is larger than the one experienced in the Lattice-Boltzmann case.

87The simulations performed with the upwind scheme are reported in Fig. 11. In the cases with = 0.1 m∕s, the computational time was between 20 and 25 CPUs. Contrary to the upwind case (Fig. 10) and the Lattice-Boltzmann model (Fig. 7), the oscillations are suppressed and the instabilities removed-crucially, the model's predictive power is maintained also in the case Pe → ∞. As predicted, the numerical diffusivity is relevant: a comparison between Fig. 11(c), Figs. 7(b) and 10(c) shows that the error associated to the upwind finite-difference simulations up to Pe = 1 000 is comparable (albeit slightly smaller) to the central finite-difference, and larger than the one experienced in the Lattice-Boltzmann case.

Sharp start: finite-difference. negative-diffusivity correction

88The convergence behaviour of the explicit finite-difference method with upwind advection scheme and negative-diffusivity correction is reported in Fig. 12. The model with the negative-diffusivity correction ( Fig. 12(b)) is shown to display the same order of convergence of the pure upwind ( Fig. 12(a)), but is able to display convergent behaviour at coarser meshes.

89In Fig. 13, the action of the variation of the negative-diffusivity parameter over the results of the simulations is displayed. In all cases, the computational time was between 25 and 35 CPUs with peaks up to 67 CPUs. The results show that the numerical diffusivity cannot be D. Dapelo et al. removed; however, it is shown that the introduction of the negativediffusivity term allows a significant reduction of the error of up to 50%. Fig. 13(f) shows that, for Pe ⪆ 1 000, values of larger than 0.8 result in the appearance of oscillations; it is therefore necessary to strike a balance between precision (viz., suppression of the numerical diffusion) and stability (that is, preventing oscillations). This balance is achieved by minimizing the value of the error as a function of and is achieved for = 0.8145 ± 0.0025 for Pe = 10, = 0.890 ± 0.001 for Pe = 100 and = 0.769 ± 0.001 for Pe = 1000.

Upscaling tests for the non-periodical case

90In Fig. 14 processor per second). The speed-up of a given lattice at a number of processors 1 with respect to the initial number of processors 0 is given as:

91That gives, for instance, the value = 4.012 for 120 processors against a theoretical speed-up of th ≡ 1 ∕ 0 = 6 in the finite-difference model for the = 317 3 lattice. It can be seen that both the model display similar upscaling characteristics. This proves that the models behave similarly in terms of parallelizability.

Discussion

92The Lattice-Boltzmann advection-diffusion simulations with smooth initial conditions (Section 6.1) display the expected second-order convergence. The Lattice-Boltzmann advection-diffusion simulations with non-smooth initial conditions (Section 6.3), are found to retain secondorder convergence if they respect relaxed versions of the stability conditions proposed in the literature; otherwise, they demonstrate a deterioration of convergence from second to first order. Specifically, the Pe g criterion (Eq. (27)) is found to be determinant, as transition from second to first order of convergence is observed to occur for Pe g ≳ 100 and in the case Pe g = 0 (which makes it reasonable to suppose that the same happens in a sufficiently small neighbour of Pe g = 0). Conversely, the stability criterion based on the simplified version of [20]'s observation (Eq. (28)) is found to be either irrelevant or a duplication of the Pe g criterion for the numerical setup taken in consideration within this work.

93Lattice-Boltzmann and explicit finite-difference models are shown to be equivalent in terms of computational expense. The upwind finitedifference with the negative-diffusivity correction constitutes an exception, but the increase in computational expense is within 50%. Peaks of computational expense should be considered carefully, as they are likely to be generated by sudden increases of resource requirements in the laptop's operating system. Therefore, the comparison between Lattice-Boltzmann and finite-difference models is limited to numerical precision and predictive power.

94A comparison of the error over Pe and a conversion of the latter into Pe g for the Lattice-Boltzmann (Fig. 7(b)), the central (Fig. 10(c)) and the upwind finite-difference models (Fig. 11(c)) in the context of sharp initial conditions shows that: (i) for Pe g < 10, the finite-difference model with the central scheme for advection produces the smallest amount of error; (ii) for 10 < Pe g < 100, the Lattice-Boltzmann is superior; and (iii) the finite-difference model with the upwind scheme for advection is never competitive. These statements are justified by the following considerations: (i) the central finite-difference performs better than the other methods for Pe g < 10 because it displays secondorder convergence whereas the upwind is only first-order convergent, and Lattice-Boltzmann's convergence deteriorates to the first order for Pe g → 0; (ii) having the same (viz., second) order of convergence, the central finite-difference performs worse than the Lattice-Boltzmann for 10 < Pe g < 100 because of the onset of oscillations (see Fig. 10(a)), and this is predictable by comparing Eq. (25) to Eq. (38); (iii) the upwind finite-difference model is inferior to the Lattice-Boltzmann because of its numerical diffusivity (see Fig. 11(a)).

95A comparison between Figs. 7(a), 10(a) and 11(a) shows that the Lattice-Boltzmann and the central finite-difference models rapidly lose their predictive power when Pe g > 100 because of the oscillations, whereas the upwind finite-difference remains stable up to Pe g → ∞.

96Finally, Fig. 13 shows that the introduction of the negative-diffusivity correction brings about a significant reduction of the numerical diffusivity error. However, oscillations are re-introduced if the weight of the correction is too high, i.e.: → 1. Therefore, the optimum value of must be chosen in order to reduce the error as much as possible, whilst maintaining system stability through oscillation removal. The proposed method of numerically finding the minimum of the error in function of is shown to successfully provide this balance. However, the magnitude of the oscillations -and therefore the optimum value of -depends on the values of Pe; this is exemplified by the fact that three different optima were found for three different values of Pe. Consequently, the operation of finding the optimum value of by finding the minimum value of the error should be repeated for each application of the method, and each set of data if possible.

Conclusions

97The Lattice-Boltzmann advection-diffusion model is shown to possess advantages in terms of parallelizability comparable to pure Lattice-Boltzmann, and to exhibit second order of convergence for smooth initial conditions. For non-smooth initial conditions, the order of convergence is shown to primarily depend on Pe g . As this work is primarily concerned on assessing the dependence of Lattice-Boltzmann and explicit finite-difference models for advection-diffusion from Pe and Pe g with the explicit case Pe, Pe g → ∞ in mind, the dependence of Lattice-Boltzmann advection-diffusion's order of convergence from Co and * has not been thoroughfully assessed. Further work is required to address this specific gap and will also (i) investigate Lattice-Boltzmann's order of convergence for Pe g → 0, and (ii) find the critical value for Pe g in the smooth-initial condition case.

98Based on the considerations reported in Section 7 on the mutual comparison between central finite-difference, upwind finite-difference and Lattice-Boltzmann advection-diffusion models, the following recommendations are given. a. Pe g < 10: use explicit finite-difference with the central differentiation scheme for advection. b. 10 < Pe g < 100: use Lattice-Boltzmann. c. 100 < Pe g < ∞: use explicit finite-difference with the upwind differentiation scheme for advection and the negative-diffusivity correction. Tune the parameter in order to strike the optimum balance between stability and precision (viz., find the minimum of the error as a single-variable function of ).

99Further work will also include the application of the explicit finitedifference models to the continuous boundary condition benchmark, and the extension of the comparative work to models implementing multiple-relaxation-time and two-relaxation-time Lattice-Boltzmann for advection-diffusion.

참고문헌 21건

  1. A fractional-step thermal lattice Boltzmann model for high Peclet number flow Computers & Mathematics with Applications · Elsevier BV · 2015 10.1016/j.camwa.2015.07.006
  2. Euler-Lagrange CFD modelling of unconfined gas mixing in anaerobic digestion Water Research · Elsevier BV · 2015 10.1016/j.watres.2015.08.042
  3. Numerical Computation of Internal and External Flows Elsevier eBooks · Elsevier BV · 2007 10.1016/b978-0-7506-6594-0.x5037-1
  4. Computational Fluid Dynamics for Engineers 2011 10.1017/cbo9781139093590
  5. A lattice Boltzmann equation for diffusion Journal of Statistical Physics · Springer Science+Business Media · 1995 10.1007/bf02181215
  6. Lattice Boltzmann method with two relaxation times for advection–diffusion equation: Third order analysis and stability analysis Advances in Water Resources · Elsevier BV · 2008 10.1016/j.advwatres.2008.05.001
  7. Multiple-relaxation-time model for the correct thermohydrodynamic equations Physical Review E · American Physical Society · 2008 10.1103/physreve.78.026705
  8. A Model for Collision Processes in Gases. I. Small Amplitude Processes in Charged and Neutral One-Component Systems Physical Review · American Institute of Physics · 1954 10.1103/physrev.94.511
  9. Equilibrium-type and link-type lattice Boltzmann models for generic advection and anisotropic-dispersion equation Advances in Water Resources · Elsevier BV · 2005 10.1016/j.advwatres.2005.03.004
  10. Non-negativity and stability analyses of lattice Boltzmann method for advection–diffusion equation Journal of Computational Physics · Elsevier BV · 2008 10.1016/j.jcp.2008.09.005
  11. Entropic lattice Boltzmann method for simulation of thermal flows Mathematics and Computers in Simulation · Elsevier BV · 2006 10.1016/j.matcom.2006.05.012
  12. Investigation of Stability and Hydrodynamics of Different Lattice Boltzmann Models Journal of Statistical Physics · Springer Science+Business Media · 2004 10.1007/s10955-004-2264-x
  13. Lattice Bhatnagar-Gross-Krook models for miscible fluids Physical review. E, Statistical physics, plasmas, fluids, and related interdisciplinary topics · American Physical Society · 1993 10.1103/physreve.47.4247
  14. One-dimensional linear advection–diffusion equation: Analytical and finite element solutions Computers & Fluids · Elsevier BV · 2014 10.1016/j.compfluid.2014.11.006
  15. Lattice Boltzmann 2038 EPL (Europhysics Letters) · Institute of Physics · 2015 10.1209/0295-5075/109/50001
  16. Towards Lattice-Boltzmann modelling of unconfined gas mixing in anaerobic digestion Computers & Fluids · Elsevier BV · 2018 10.1016/j.compfluid.2018.12.008
  17. OpenLB—Open source lattice Boltzmann code Computers & Mathematics with Applications · Elsevier BV · 2020 10.1016/j.camwa.2020.04.033
  18. On relaxation systems and their relation to discrete velocity Boltzmann models for scalar advection–diffusion equations Philosophical Transactions of the Royal Society A Mathematical Physical and Engineering Sciences · Royal Society · 2020 10.1098/rsta.2019.0400
  19. The lattice Boltzmann method for nearly incompressible flows Journal of Computational Physics · Elsevier BV · 2020 10.1016/j.jcp.2020.109713
  20. OpenLB Release 1.4: Open Source Lattice Boltzmann Code 2020 10.5281/zenodo.4279263
  21. OpenLB Release 1.3: Open Source Lattice Boltzmann Code 2019 10.5281/zenodo.3625967