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

GPU Accelerated Multiple-Relaxation-Time Lattice Boltzmann Simulation of Convective Flows in a Porous Media

간접 관련 수소연료전지 · (5) 연료전지용 수분제어장치(가습기) (18) VENT(방수통기 부품)

기본 정보

저자
  1. Md. Mamun Molla — Department of Mathematics and Physics, North South University, Dhaka, Bangladesh
  2. Md Jahidul Haque — Department of Electrical and Computer Engineering, North South University, Dhaka, Bangladesh
  3. Amirul Khan — School of Civil Engineering, University of Leeds, Leeds, United Kingdom
  4. Suvash C. Saha — Department of Mechanical Engineering, University of Technology Sydney, Sydney, NSW, Australia
DOI
10.3389/fmech.2018.00015
저널
Frontiers in Mechanical Engineering
발행년도
2018
발행기관
Frontiers Media
피인용수
34
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.3389/fmech.2018.00015
토픽
Heat and Mass Transfer in Porous Media
OpenAlex ID
W2899549560

평가 내용

관련도
간접 관련
사업분야
수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
부 분야
(18) VENT(방수통기 부품)
R&D 측면
분석·모델링
확신도
0.70
근거 용어
porous media, convective flows, Lattice Boltzmann Method, thermal management, heat transfer
판단 근거
다공성 매질(porous media) 내의 대류 열전달을 시뮬레이션하는 수치 해석 모델에 관한 연구입니다. 이는 수소연료전지(PEMFC)의 가습기(5) 내 중공사막이나 방수통기 부품(18)의 멤브레인 구조 내 유체/열 흐름 분석에 응용될 수 있습니다.
R&D 활용 포인트
연료전지용 중공사막 가습기나 전장부품용 멤브레인의 다공성 구조 내에서 발생하는 열 및 유체 흐름을 예측하고 최적화하는 시뮬레이션 기법으로 활용 가능합니다.
평가 입력
본문 64,128자 중 30,032자 발췌

초록

A two-dimensional (2D) multiple-relaxation-time (MRT) lattice Boltzmann method (LBM) is used for porous media with the Brinkman-Forchheimer extended Darcy model to investigate the natural and mixed convection flows in a square cavity. This Brinkman-Forchheimer model is directly used through the forcing moments as source term. A Tesla K40 NVIDIA graphics card has been used for the present Graphics Process Unit (GPU) parallel computing via Compute Unified Device Architecture (CUDA) C platform. The numerical results are presented in terms of the velocity, temperature, streamlines, isotherms and local and average Nusselt numbers. For the wide range of Rayleigh numbers, $(Ra = 10^3$ to $10^{10}$), Reynolds numbers, Darcy numbers and the porosities, the average Nusselt number is compared with the available results computed by finite element method (FEM) and single-relaxation-time (SRT) lattice Boltzmann method and the agreement shows quite well. {\blue{The results are also validated with the previous experimental results.}} The simulations speed up maximum 144x using CUDA C in GPU comparing with the time of FORTRAN 90 code using a single core CPU simulation.

본문 64,128자

본문 펼치기
Edited by: Satish Kumar, Georgia Institute of Technology, United States Reviewed by: Dipankar Chatterjee, Central Mechanical Engineering Research Institute (CSIR), India Alex Hansen, Norwegian University of Science and Technology, Norway *Correspondence: Md Mamun Molla [mamun.molla@northsouth.edu](mailto:mamun.molla@northsouth.edu) Specialty section: This article was submitted to Thermal and Mass Transport, a section of the journal Frontiers in Mechanical Engineering Received: 11 July 2018 Accepted: 21 September 2018 Published: 05 November 2018 Citation: Molla MM, Haque MJ, Khan MAI and Saha SC (2018) GPU Accelerated Multiple-Relaxation-Time Lattice Boltzmann Simulation of Convective Flows in a Porous Media. Front. Mech. Eng. 4:15. [doi: 10.3389/fmech.2018.00015](https://doi.org/10.3389/fmech.2018.00015) [ORIGINAL RESEARCH](https://www.frontiersin.org/journals/mechanical-engineering#editorial-board) [published: 05 November 2018](https://www.frontiersin.org/journals/mechanical-engineering#editorial-board) [doi: 10.3389/fmech.2018.00015](https://doi.org/10.3389/fmech.2018.00015) # GPU Accelerated Multiple-Relaxation-Time Lattice Boltzmann Simulation of Convective Flows in a Porous Media [Md Mamun Molla](http://loop.frontiersin.org/people/160438/overview) <sup>1</sup> [*, Md Jahidul Haque](http://loop.frontiersin.org/people/628538/overview) <sup>2</sup> [, Md Amirul Islam Khan](http://loop.frontiersin.org/people/159933/overview) <sup>3</sup> [and Suvash C. Saha](http://loop.frontiersin.org/people/105690/overview) <sup>4</sup> 1 Department of Mathematics and Physics, North South University, Dhaka, Bangladesh, 2 Department of Electrical and Computer Engineering, North South University, Dhaka, Bangladesh, <sup>3</sup> School of Civil Engineering, University of Leeds, Leeds, United Kingdom, <sup>4</sup> Department of Mechanical Engineering, University of Technology Sydney, Sydney, NSW, Australia A two-dimensional (2D) multiple-relaxation-time (MRT)-lattice Boltzmann method (LBM) is used for porous media with the Brinkman–Forchheimer extended Darcy model to investigate the natural and mixed convection flows in a square cavity. This Brinkman–Forchheimer model is directly applied by using the forcing moments as a source term. A Tesla K40 NVIDIA graphics card has been used for the present graphics processing unit (GPU) parallel computing via compute unified device architecture (CUDA) C platform. The numerical results are presented in terms of velocity, temperature, streamlines, isotherms, and local and average Nusselt numbers. For the wide range of Rayleigh numbers, (Ra = 10 <sup>3</sup> to 10 <sup>10</sup> ), Reynolds numbers, Darcy numbers, and porosities, the average Nusselt number is compared with the available results computed by finite element method (FEM) and single-relaxation-time (SRT) lattice Boltzmann method-LBM and, showing great compliance. The results are also validated with the previous experimental results. The simulations speed up to a maximum of 144x using CUDA C in GPU compared with the time of FORTRAN 90 code using a single core CPU simulation. Keywords: GPU parallel computing, CUDA C, porous media, Brinkman–Forchheimer model, MRT-LBM, natural and mixed convection 1. INTRODUCTION In recent years, graphics processing units (GPUs) have played a large role in using highperformance computing (HPC) because of the GPU’s significantly higher performance compared to traditional central processing unit (CPU) based processors. A GPU has many slim processing units on a single chip and performs in parallel a very large number of operations on a correspondingly large number of operands. Graphics processing unit computing is a heterogeneous simulation system, a small part is run sequentially by the CPU, and the larger part is run in GPU. It has already been established that the GPU parallel computing is well-regarded because of the remarkable floating point arithmetic performance. Currently the GPU is considered a computational accelerator that processes a massively multi-threaded architecture, which has been widely used for graphical and general purpose computations, such as molecular dynamics simulations and computational fluid dynamics (Ye et al., 2015; Calore et al., 2016). Fluid flow and convective heat transfer through porous media is an interesting and useful research area because of its application in the fields of science and engineering, such as hydrology, civil and mechanical engineering, chemical engineering and petroleum engineering, thermal management of electronic cooling, and the improvement of heat transfer systems Guo and Zhao (2005). Guo and Zhao (2002) first proposed Bhatnagar-Gross-Krook (BGK) or single-relaxation-time (SRT)lattice Boltzmann method (LBM) for isothermal incompressible flow in porous media. In their model, the porosity parameter introduced through equilibrium distribution function added the forcing term into the evolution equation to account for the linear and non-linear drag forces of media using Darcy’s term and Forchheimer’s term. They successfully applied their model for two-dimensional (2D) Poiseuille flow, Couette flow, and liddriven cavity flow and compared their LBM results with the analytical and finite difference solutions. Later on, Guo and Zhao (2005) extended their study of convective heat transfer using the same SRT-LBM and successfully simulated the temperature field for the natural convection of side-heated cavity and mixed convection of the channel flow through porous media. Following Guo and Zhao (2002) and Seta et al. (2006a,b) we studied the Poiseuille flow and natural convection flow in a side-heated cavity filled with porous media using the SRTLBM for the non-Darcy regime, considering 10 <sup>3</sup> ≤ Ra ≤ 10 <sup>6</sup> . For higher Rayleigh numbers (Ra), 10 <sup>3</sup> ≤ Ra ≤ 10 <sup>10</sup>, an extensive investigation has been done by Vishnampet et al. (2011) considering the Darcy and non-Darcy regime using SRTLBM and compared their results with the available numerical and experimental results. The above-mentioned SRT-LBM has many advantages from a computational viewpoint: There is intrinsic parallelism of the algorithm and the simplicity of programming over traditional finite difference, finite volume, and finite element methods (FEMs). It has been successfully used in various complex fluid systems, such as multiphase flow (Shan and Chen, 1994), suspension in fluids (Ladd, 1997), magneto-hydrodynamics flow (Premnath and Pattison, 2005; Nemati et al., 2012), nanofluids (Fattahi et al., 2012), and flow through porous media with variable porosity (Guo and Zhao, 2005; Vishnampet et al., 2011). Despite these advantages, there are some shortcomings. This leads to numerical instability when the dimensionless relaxation time τ is close to 0.5 (Du et al., 2006). It has already been established that the shortcomings in SRTLBM are removed by using the multiple-relaxation-time lattice Boltzmann method (MRT-LBM). The MRT-LBM is numerically more stable, and has more degrees of freedom than the SRT-LBM. Initially, Lallemand and Luo (2000) constructed a generalized lattice Boltzmann (LB) equation in moment space rather than in discrete velocity space based on d’Humieres study (d’Humieres, 1992), which is now known as MRT-LBM. Lallemand and Luo (2000) analyzed the stability of the model and compared it to the BGK lattice Boltzmann (LB) equation model and found that the mechanism of separate relaxations for the kinetic modes lead to a model that is much more stable than the BGK LB equation model. There are many studies that have been done by using MRT-LBM, some of which are cited in the following sections. Chai et al. (2006) simulated high Reynolds number (Ra) flow in a lid-driven cavity by MRT-LBM for Re ranges from 20,000 to 100,000, and they mentioned that this study was the first attempt to simulate 2D cavity flow for a maximum Re = 100,000. Using the MRT-LBM, the two lid-driven cavity flow was investigated by Guo et al. (2014). Du et al. (2006) proposed an incompressible MRT-LB model and simulated the lid-driven cavity flow for Re = 100,000. They also simulated the double shear layer flow for high Reynolds numbers and showed that the numerical results are better than those of SRT-LBM. For computing the channel flow past a square cylinder with an upstream control, bi-partition was done using the MRT-LBM by Moussaoui et al. (2010a). Du and Liu (2013) investigated the natural convection flow in a side-heated cavity using the MRT-LBM for the fluid flow and SRT-LBM for the temperature field. Computation of heat transfer and fluid flow in an obstructed channel was done by Moussaoui et al. (2010b). They solved the fluid flow LB equation using the MRT technique and the energy equation for temperature by the finite difference method. Few articles are available in the literature with double MRT-LBM for velocity and thermal flow simulation. Guo et al. (2010) investigated the mixed convection flow in a slender rectangular cavity with the D2Q9 model for velocity and D2Q5 model for the temperature simulation. For pure fluid flows, heat transfer simulation has been studied in Mezrhab et al. (2010), Chen et al. (2011), Wang et al. (2013), Trouette (2013), and Zhang and Che (2016) using double MRT-LBM. These studies are conducted by CPU simulations. The MRT LB simulations of transitional flows in a deep 2D lid-driven cavity was investigated by Lin et al. (2013) using GPU computing. They concluded that the GPU showed an efficient performance for larger grid size problems. Xu et al. (2017) studied the double MRT LB simulation of lid-driven and sideheated cavity flows using GPU in the directive-based OpenACC platform and found that the optimized data layout gives a better performance over CPU. Ren and Chan (2016a,b) studied SRTLBM simulation of natural convection flow using the GPU in a CUDA platform. They also investigated the SRT-LBM for velocity and MRT-LBM for total enthalpy simulation of a phase change material’s (PCM’s) melting process in an enclosure using GPU computing (Ren and Chan, 2016c). In this paper, MRT-LBM is used for porous media with the Brinkman–Forchheimer extended Darcy model to investigate the natural and mixed convection flows in a side- or top-heated square cavity using GPU computing via the CUDA C platform. A FORTRAN 90 code has also been used for comparing the CPU simulation time with the simulation by CUDA C in GPU. The Brinkman–Forchheimer model is applied by using forcing moments as a source term. Following the papers (Guo et al., 2010; Trouette, 2013), in double MRT-LBM, the fluid flow is simulated by the D2Q9 model and the temperature field by the D2Q5 model. In the natural convection simulation, the Rayleigh number Ra = 10 <sup>3</sup> to 10 <sup>10</sup>, Darcy number Da = 10 <sup>−2</sup> to 10 <sup>−7</sup>, and the porosity parameter ǫ = 0.4 and 0.6 are considered. The Reynolds numbers Re = 400 and 1,000 and the Grashof number Gr = 100 are considered for the mixed convection case with the same ǫ. 2. GOVERNING EQUATIONS IN MACRO SCALE The non-dimensional governing equations for the laminar natural and mixed convection incompressible 2D flows for porous media are as follows (Nithiarasu et al., 1997): where f (f0, f1, f2, ......, fn) <sup>T</sup>, and m and m <sup>eq</sup> are vectors = of moments, m = (m0, m1, m2, ......, mn) <sup>T</sup>, and m <sup>eq</sup> = (m0 <sup>eq</sup>, m1 <sup>eq</sup>, m2 <sup>eq</sup>, ......, mn <sup>eq</sup> ) <sup>T</sup>, and the forcing components are F = (F0, F1, F2, ......, Fn) <sup>T</sup> . The mapping between velocity and moment spaces can be transformed by linear transformations m = Mf and f = M <sup>−</sup> <sup>1</sup> m . The matrix M for D2Q9 is ∂uy (1) <sup>∂</sup> ∂ <sup><u>u</u></sup> x <sup><u>y</u></sup> <sup>= 0</sup> ∂∂uxy <sup>+</sup> <sup>∂</sup> ∂ <sup><u>u</u></sup> x <sup><u>y</u></sup>   + D (2) <u>�</u> M = <u>∂ux</u> ǫ ∂t <sup>+</sup> <sup><u>ux</u></sup> <u>∂ux</u> ǫ ∂x <sup>+</sup> <sup><u>uy</u></sup> <u>∂ux</u> <sup><u>∂</u></sup> ∂ <sup><u>p</u></sup> x <sup>+A</sup> <u>∂ux</u> <u>∂ux</u> ∂y <sup>2</sup> <u>�</u> <u>∂∂2xu</u> <sup>2</sup> <u>x</u> <sup>+</sup> <sup><u>∂</u></sup> <sup>2ux</sup> ǫ ǫ <u>∂∂uyx</u> <sup>= −ǫ</sup> <sup><u>∂</u></sup> ∂ <sup><u>p</u></sup> x   1 1 1 1 1 1 1 1 1 −4 −1 −1 −1 −1 2 2 2 2 4 −2 −2 −2 −2 1 1 1 1 0 1 0 −1 0 1 −1 −1 1 0 −2 0 2 0 1 −1 −1 1 0 0 1 0 −1 1 1 −1 −1 0 0 −2 0 2 1 1 −1 −1 0 1 −1 1 −1 0 0 0 0 0 0 0 0 0 1 −1 1 −1 (7) ∂uy ǫ <sup>ux</sup> <sup><u>1</u></sup> ǫ <sup>uy</sup> <sup><u>1</u></sup> <sup><u>∂</u></sup> ∂ <sup><u>p</u></sup> y <sup>+ A</sup> <u>uy</u> ǫ ∂t <sup>+</sup> <sup><u>1</u></sup> - ∂∂ <sup>2</sup> xu <sup>2</sup> <u>y</u> ∂uy ∂uy ǫ ∂x <sup>+</sup> <sup><u>1</u></sup> ∂uy ∂∂uyy <sup>=</sup> <sup>−ǫ</sup> <sup><u>∂</u></sup> ∂ <sup><u>p</u></sup> y ∂ <sup>2</sup> <u>uy</u> ∂y <sup>2</sup> ∂x <sup>2</sup> <sup>+</sup> <sup>∂</sup> <sup>2uy</sup> ∂y <sup>2</sup> +Bǫθ + D (3) The collision matrix S in a moment space is a diagonal matrix. The nine eigen-values of S are all between 0 and 2 so as to maintain linear stability and the separation of scales, which means that the relaxation times of non-conserved quantities are much faster than the hydrodynamic time scales. The LBGK model is a special case in which the nine relaxation times are all equal, and the collision matrix S = τ1 <sup>I</sup> <sup>,</sup> <sup>where</sup> <sup>I</sup> <sup>is</sup> <sup>the</sup> <sup>identity</sup> matrix. The diagonal collision matrix S can be written as S = diag [s0, s1, s2, s3, s4, s5, s6, s7, s8], (8) where s0 = s3 <u>=1</u> s5 = 1.0, s1 = s2 = 1.4, s4 = s6 = 1.2, and s7 = s8 = τ <sup>.</sup> <sup>Here,</sup> <sup>τ</sup> <sup>is</sup> <sup>the</sup> <sup>relaxation</sup> <sup>time</sup> <sup>related</sup> <sup>to</sup> <sup>the</sup> kinematic viscosity of the fluid ν = cs <sup>2�t(τ</sup> <sup>−</sup> <sup>1/2),</sup> (9) where cs <sup>2</sup> = 31 <sup>.</sup> <sup>The</sup> <sup>body</sup> <sup>force</sup> <sup>F</sup> <sup>encompasses</sup> <sup>the</sup> <sup>viscous</sup> diffusion, the inertia due to the presence of a porous media, and an external term (Seta et al., 2006a). Using the widely applied Ergun’s relation (Ergun, 1952), the body force for the porous media can be defined as <u>∂θ</u> ∂t <sup>+ uy</sup> <u>∂θ</u> ∂x <sup>+ uy</sup> <u>∂θ</u> ∂y <sup>= C</sup> ∂y <sup>2</sup> - <u>∂∂2xθ</u> <sup>2</sup> <sup>+</sup> <sup><u>∂</u></sup> <sup>2θ</sup> (4) where, ux and uy are the velocities of the fluid along the x and y directions, p is the pressure, θ is the temperature of the fluid, and ǫ is the porosity of the porous media. Here, A, B, and C vary for the natural and mixed convection cases, and D is the body force term for the porous media, which is given in the next section. In the natural convection case: A = Pr, B = RaPr, and C = 1, and in the mixed convection case: A = 1/Re, B = Gr/Re <sup>2</sup>, and C = 1/RePr, where Pr is the Prandtl number, Re is the Reynolds number, Ra is the Rayleigh number, and Gr/Re <sup>2</sup> is the Richardson number. For the present simulation, the corresponding LBMs of the above equations are described below: 3. FORMULATION OF THE PROBLEM IN LBM In this paper, the D2Q9 lattice model MRT-LBM has been employed for simulating the fluid velocity field, and the D2Q5 lattice model MRT-LBM has been used (Trouette, 2013) for simulating the temperature distribution, which is briefly described below: 3.1. Multiple-Relaxation-Time Lattice Boltzmann for Fluid Flow The MRT LB equation for fluid flow collision operation can be generalized as F = D <u>+ ǫ</u> G (10) <sup><u>ǫν</u></sup> K <sup>u</sup> <sup>−</sup> ~~√~~ 1501.75ǫ F = - <sup><u>ǫν</u></sup> K 150ǫK | u | u + ǫ G, (11) +�t Fi ( x, t), (5) where K <sup>def</sup> = DaH <sup>2</sup> is the permeability of the porous medium, and G = gβ(T - Tm) is the buoyancy term. Here, Da is the Darcy number, H is the height of the cavity, and Tm = Th + Tc is the reference temperature, Th and Tc indicate the temperatures of the heated and cold walls, respectively. By including porosity in the equilibrium moment vector, m <sup>eq</sup> given as fi( x + ei �t, t+�t)−fi( x, t) = −� i �fi( x, t) − f <sup>eq</sup> i <sup>(</sup> <sup>x</sup> <sup>, t)</sup> <sup>eq</sup> (5) - where � is the collision operator, and Fi denotes components of the body force, which will be defined later on. It is convenient to perform the collision process in the momentum space instead of the velocity space. So, Equation (5) can be transformed as f ( x + ei �t, t + �t) − f ( x, t) = - M <sup>−</sup> <sup>1</sup> S - m ( x, t) − m <sup>eq</sup> ( x, t) F ( x, t), I - <sup><u>S</u></sup> F ( x, t), (6) <u>�</u> m <sup>eq</sup> m <sup>eq</sup> 1 <sup>= −2ρ + 3</sup> (12b) ǫ <u>jy</u> <sup>2�</sup> <sup>eq</sup> 0 <sup>= ρ</sup> (12a) + M <sup>−</sup> <sup>1</sup> I - <sup><u>S</u></sup> 2 <u>�</u> 2 ǫ <u>�jx</u> <sup>2</sup> <u>+ jy</u> <sup>2�</sup> FIGURE 1 | Lattice discrete velocity structure as in Trouette’s paper (Trouette, 2013) (A) D2Q9 and (B) D2Q5 model. m <sup>eq</sup> 2 m <sup>eq</sup> 3 m <sup>eq</sup> 4 m <sup>eq</sup> 5 m <sup>eq</sup> 6 m <sup>eq</sup> <sup>eq</sup> 2 <sup>= ρ −</sup> <sup>3</sup> ǫ <u>�jx</u> <sup>2</sup> <u>+ jy</u> <sup>2�</sup> (12c) ǫ <u>jy</u> <sup>2�</sup> 3.2. Multiple-Relaxation-Time Thermal Lattice Boltzmann Similarly, the MRT thermal LB equation for collision operation can be written as <sup>eq</sup> 3 <sup>= jx</sup> (12d) <sup>eq</sup> 4 <sup>= −jx</sup> (12e) <sup>eq</sup> 5 <sup>= jy</sup> (12f) <sup>eq</sup> 6 <sup>= −jy</sup> (12g) g ( x + ei �t, t + �t) − g ( x, t) = − N <sup>−</sup> <sup>1</sup> S - m ( x, t) − m <sup>eq</sup> ( x, t) thermal g ( x + ei �t, t + �t) − g ( x, t) = − N <sup>−</sup> <sup>1</sup> S m ( x, t) − m <sup>eq</sup> ( x, t), (16) - where g (g0, g1, g2, ......, gn) <sup>T</sup> is the thermal distribution = function. Here, the D2Q5 model has been used for the thermal LBM. The collision matrix N for D2Q5 is given as <sup>eq</sup> 7 <sup>=</sup> ǫ <u>�jx</u> <sup>2</sup> <u>−</u> <u>jy</u> <sup>2�</sup> (12h) ǫ <u>jy</u> <sup>2�</sup> <sup>eq</sup> (12i) ǫ 8 <sup>=</sup> <sup><u>jxjy</u></sup> m <sup>eq</sup> (17)     1 1 1 1 1 0 1 0 −1 0 0 0 1 0 −1 −4 1 1 1 1 0 1 −1 1 −1 where, jx = ρux and jy = ρuy. Here, ux and uy are the horizontal and vertical velocity components of the fluid, respectively. The discrete velocity components of the 2D (D2Q9) lattice model are as follows (see Figure 1A ): N = The five eigen-values of S are all between 0 and 2. The diagonal collision matrix S can be written as S = diag [s0, sα, sα, se, sν] (18) The values of si are given in detail in Trouette’s paper (Trouette, 2013). They are e i =    (0, 0), i = 0 c(1, 0), c(0, 1), c(−1, 0), c(0, −1), i = 1, 2, 3, 4 c(1, 1), c(−1, 1), c(−1, −1), c(1, −1), i = 5, 6, 7, 8 (13) <sup><u>1</u></sup> 2 <sup>=</sup> In the above equation, c <sup>def</sup> = �x/�t is the lattice speed, where �x = �t = 1. The macroscopic fluid density ρ and velocity u are obtained from the moments of the distribution function as follows: <u>1</u> s0 = 1, se <u>1</u> sα - <sup><u>1</u></sup> 2 - <sup><u>1</u></sup> 2 <sup><u>1</u></sup> sν 2 <sup>=</sup> <sup><u>1</u></sup> <u>√</u> <u>−</u> 2 <sup><u>1</u></sup> (19) <sup><u>1</u></sup> 6 2 <sup>=</sup> <sup><u>1</u></sup> <u>√</u> <u>3</u> (20) 6 These parameters correspond to the thermal diffusivity α = ρ = 8 i� = 0 i = 0 fi (14) <u>√</u> <u>3(4 + a)</u> (21) 60 u = ρ <sup><u>1</u></sup> 8 i� = 0 i = 0 For the D2Q5 thermal LB model, a depends on the thermal diffusivity α and is less than 1 so as to avoid numerical instability. (15) fi e i + <sup><u>ǫ</u></sup> 2 <sup><u>G</u></sup> FIGURE 2 | Schematic model for convective flows in square cavity: (A) natural convection and (B) mixed convection. Corresponding to the distribution function gi, the equilibrium moments m <sup>eq</sup> are given as m <sup>eq</sup> 0 <sup>= T</sup> (22a) m <sup>eq</sup> 1 <sup>= uxT</sup> (22b) m <sup>eq</sup> 2 <sup>= uyT</sup> (22c) m <sup>eq</sup> 3 <sup>= aT</sup> (22d) m <sup>eq</sup> 4 <sup>= 0</sup> (22e) 3.4. Boundary Conditions For the no-slip wall, the bounce-back boundary condition is applied on velocity fields. Similar to what was observed in Trouette’s paper (Trouette, 2013), the incoming unknown distribution function fi( x f, t + �t) is equal to the outgoing post-collision distribution function fi <sup>c(</sup> <sup>x</sup> <sup>f, t):</sup> fi( x f, t + �t) = fi <sup>c(</sup> <sup>x</sup> <sup>f</sup> <sup>, t)</sup> (25) For a wall with a fixed temperature Tw, the following boundary condition is applied for the D2Q5 model MRT thermal LB simulation: In this case, for the 5-bit two dimensional (D2Q5) lattice, the discrete velocities are given as follows (see Figure 1B ): �(3)αTw (26) gi( x f, t + �t) = −gi <sup>c(</sup> <sup>x</sup> <sup>f</sup> <sup>, t) + 2</sup> gi( x f, t + �t) = gi <sup>c(</sup> <sup>x</sup> <sup>f</sup> <sup>, t)</sup> (27) e i = (0, 0), i = 0 (23) c(1, 0), c(0, 1), c(−1, 0), c(0, −1), i = 1, 2, 3, 4 For an adiabatic wall, the anti-bounce-back condition is applied: The temperature T can be calculated as 3.5. Average Rate of Heat Transfer In the heat transfer problem, the focus is on calculating the rate of heat transfer in terms of the local and average Nusselt numbers that are defined below, respectively: For natural convection flow T = 4 i� = 0 gi (24) 3.3. Application of the MRT-LBM to Convective Flows in a Square Cavity To show the applicability of this MRT-LBM for porous media for convective flows, two cases have been considered: one is for natural convection flow and the other one is for mixed convection flow. (i) In the cases of natural convection flow, a 2D square cavity is filled with porous media in which the top and bottom walls are adiabatic but the left and right walls are isothermal and are maintained at different temperatures Th and Tc, respectively. Here, Th = 1.0 and Tc = 0.0, which is shown in Figure 2A . (ii) In Figure 2B, for the mixed convection flow, the top wall moves along the horizontal direction and is maintained at a constant temperature Th = 1.0, and at the bottom wall, Tc = 0.0. The left and right walls are adiabatic. For the present problem, the Boussinesq approximation is used in which all fluid properties are assumed to be constant, but the density that varies with temperature is allowed through the buoyancy term. where H is the height and L is the lenght of the cavity. Nu(y) = − <sup><u>∂θ</u></sup> ∂x (28) wall ��� and Nu = H <sup><u>1</u></sup> Nu(y)dy (29) 0 - H For mixed convection flow Nu(x) = − <sup><u>∂θ</u></sup> ∂y and (30) wall ��� Nu = L <sup><u>1</u></sup> Nu(x)dx, (31) 0 - L 4. IMPLEMENTATION OF FORCING TERM IN MRT-LBM The forcing term was implemented (11) by explicitly adding it with nine forcing moments as described by Guo and Shu (2008): F0 = 0 (32a) 1 − <sup><u>s</u></sup> 2 <sup><u>1</u></sup> (uxFx + uyFy)/ǫ (32c) F1 = 6ρ (uxFx + uyFy)/ǫ (32b) <u>�</u> F2 = −6ρ 1 − <sup><u>s</u></sup> 2 <sup><u>2</u></sup> F3 = Fx (32d) 1 − <sup><u>s</u></sup> 2 <sup><u>4</u></sup> F4 = −ρ Fx (32e) F5 = Fy (32f) 1 − <sup><u>s</u></sup> 2 <sup><u>6</u></sup> F6 = −ρ Fy (32g) F7 = ρ F8 = ρ 1 − <sup><u>s</u></sup> 2 <sup><u>7</u></sup> 1 − <sup><u>s</u></sup> 2 <sup><u>8</u></sup> (uxFx − uyFy)/ǫ (32h) (uxFy + uyFx)/ǫ (32i) <u>�</u> <sup><u>ǫν</u></sup> K <sup>uy</sup> <sup>−</sup> where, Fx = - <sup><u>ǫν</u></sup> K 1501.75ǫK <sup>|</sup> <sup>u</sup> <sup>|ux</sup> <sup>and</sup> <sup>Fy</sup> = - <sup><u>ǫν</u></sup> K programming model mainly depends on the concept of the kernel. A kernel is a function that is executed in concurrent threads on the GPU. In NVIDIA Tesla k40 architecture, a maximum of 1,024 threads form a block, and blocks are grouped into execution grids ( Figure 3 ). In CUDA, there are two programming languages, one is CUDA FORTRAN and the other one is CUDA C (or C++). In this study, we used CUDA C, which is a slight modification of the C programming language (NVIDIA, 2017). For example, in CUDA C programming, a new keyword is introduced as __global__ for the device (GPU) code, and this function is called from the main code using a triple angle <<< ... >>>. The heterogeneous simulation system in a CUDA code can be classified into four categories (Obrecht et al., 2011): (i) sequential functions run by the CPU, (ii) launching functions allowing the CPU to start a kernel, (iii) kernel run by GPU, and (iv) auxiliary functions that are inlined to the kernel at the time of compiling. At the run-time, the execution grid’s layout is specified, and a grid may have up to three dimensions. The blocks of threads within a grid must be identical, and the threads are identified with respect to the grid using the two structures theardIdx and blockIdx, containing the three fields x, y, and z. A block may only be executed on a single streaming multiprocessor that yields an upper bound of the number of threads within a block; in a Tesla k40, this is a maximum of 1,024. In the present CUDA code, the FIGURE 3 | CUDA programming: grid of thread blocks (Source: NVIDIA). <u>1.75</u> ~~√~~ 150 <u>1.75</u> <sup><u>ǫν</u></sup> K <sup>ux</sup> <sup>−</sup> ~~√~~ 150ǫ 1501.75ǫK <sup>|</sup> <sup>u</sup> <sup>|uy + ǫgβ(T −</sup> <sup>Tm).</sup> With the above forcing moments, the collision process of MRT-LBM is implemented in moment space as - + �tFi (33) m <sup>′</sup> i( x, t) = mi( x, t) − si �mi( x, t) − m <sup>eq</sup> i( x, t) 4.1. CUDA C Programming in GPU CPU sequentially allocates the task to GPU and the whole numerical computation is done by GPU. The CUDA TABLE 1 | Features of the Tesla k40 GPU device and the host CPU. GPU No. of Streaming Multiprocessor (MPs): 15 No. of CUDA cores/MP: 192 Total CUDA cores: 2,880 Total global memory: 12 GB GDDR5 GPU max clock rate: 745 MHz Memory clock rate: 3,004 Mhz Memory bus width: 384-bit L2 cache size: 1,572,864 bytes Maximum No. of threads per MP: 2048 Maximum No. of threads per block: 1024 Memory bandwidth up to: 288 GB/s CPU Processor Intel Skylake Core i7: model 6,700 Processor speed: 3.40 GHz CPU memory: 16 GB DDR3 CPU memory BUS: 3,200 BUS L3 cache size: 8 MB following grid layout is used: { int main(int argc, char ∗argv[]) cudaMalloc((void ∗∗)df, M∗N∗9∗sizeof (double)); cudaMalloc((void∗∗)fpost, M∗N∗9∗sizeof (double)); ......................................... ....................................... intthreadsAlongX = 32, threadsAlongY = 32; dim3dimBlock(threadsAlongX, threadsAlongY, 1); dim3dimGrid(ceil(float(m)/float(dimBlock.x)), ceil(float(m)/float(dimBlock.y)), 1); ........................................................... .......................................................... kernel <<< dimGrid, dimBlock >>> (d_f, fpost...); ...................................................... } Here, we have given the streaming part of the CUDA C program: __global__kernel(double ∗d_f, double ∗fpost...) {int i = blockIdx.x ∗ blockDim.x + threadIdx.x ; int j = blockIdx.y ∗ blockDim.y + threadIdx.y ; if((i >= 0)&&(i <= m − 1)&&(j >= 0)&&(j <= n − 1)){ double ixy = i + j ∗ m; x plus 1 int ip = (i == m − 1)?(0) : (i + 1); x minus 1 int im = (i == 0)?(m − 1) : (i − 1); y plus 1 int jp = (j == n − 1)?(0) : (j + 1); y minus 1 int jm = (j == 0)?(n − 1) : (j − 1); d_f [ixy + 0 ∗ m ∗ n] = fpost[ixy + 0 ∗ m ∗ n]; d_f [ixy + 1 ∗ m ∗ n] = fpost[im + j ∗ m + 1 ∗ m ∗ n]; ........................................ ........................................ d_f [ixy + 8 ∗ m ∗ n] = fpost[im + jp ∗ m + 8 ∗ m ∗ n]; } __syncthreads(); } Double precision enables (Computing capability 3.5) a Tesla k40 NVIDIA graphics card ( Table 1 ) that is used for GPU computation, and the PGI FORTRAN compiler is used for CPU computation. FIGURE 4 | Data structure of AoS and SoA. 4.2. Data Structure Modification: AoS to SoA One of the most important changes of the data structure modification in the GPU code is the change from array of structure (AoS) to structure of array (SoA). In CPU based LBM code, the data layout of the distribution function is usually arranged as AoS, because CPU can use cache memory. For example, the distribution function fi( x, t) is stored with the index (i + 9 × x + 9 × Nx × y) for the D2Q9 model, as depicted in Figure 4 . But GPU functioning is based on the single instruction multiple threads (SIMT) execution model. In CUDA C, to meet the requirement of coalescing memory access, the data layout should be changed to SoA in LBM implementation. Later, the distribution function fi( x, t) is stored with the index (x + Nx × y + Nx × Ny × i) so that the parallel threads running the same instruction can access consecutive locations in memory (Delbosc et al., 2014; Xu et al., 2017). 5. RESULTS AND DISCUSSION In this paper, a new approach is proposed for the convective heat transfer from the fluid saturated porous media using the GPU parallel computing via the CUDA C platform. Before conducting the main simulation, the present CUDA C code was validated for the lid-driven cavity flow, natural convection flow for side-heated square cavity, and mixed convection lid-driven cavity flow. The different cases are given below: 5.1. Lid-Driven Cavity Flow for Re = 10,000 and 20,000 Firstly, the MRT-LBM code is validated only for fluid flow simulation by considering the benchmarked lid-driven cavity flow, and then the double MRT-LBM code is validated for the natural and mixed convection flows in a square cavity flow. The results of the lid-driven cavity flow are depicted in Figures 5, 6 for Re = 10,000 and 20,000, respectively. The 1,024 × 1,024 lattice size is considered for both the Reynolds numbers. For FIGURE 5 | Comparison of the lid-driven cavity flow with the results of Ghia et al. (1982) (finite difference solutions): (A) u/U- velocity at mid x/H, (B) v/U- velocity at mid y/H, and (C) streamlines while Re = 10,000 after 2,000,000 iterations. FIGURE 6 | Comparison of the lid-driven cavity flow with the results of Erturk et al. (2005) (finite difference solutions): (A) u/U- velocity at mid x/H, (B) v/U- velocity at mid y/H, and (C) streamlines while Re = 20,000 after 5,000,000 iterations. Re = 10,000, the results are compared with the results of Ghia et al. (1982), and the results for Re = 20,000 are compared with the results of Erturk et al. (2005). The center of the primary vortex is located at (x, y) = (0.5119, 0.5271) and (0.5081, 0.5291) for Re = 10,000 and 20,000, respectively, and the corresponding locations were found by Erturk et al. (2005) are (0.5117, 0.5300) and (0.5100, 0.5267). From these figures, it is clear that the agreement between the present and previous simulations is quite excellent. 5.2. Natural Convection Flow in Square Cavity for Ra = 10 <sup>3</sup> to 10 <sup>9</sup> The dimensionless quantities governing this problem are the def def Prandtl number Pr = ν/α and the Rayleigh number Ra = gβ(Th - Tc)H/να. In the simulation, the <u>fluid</u> <u>velocity</u> is normalizeddimensionless temperature isby the characteristic θ = (Tvelocity − Tc)/�(Tβh −g�TTHc)., and the In order to validate fluid flow and heat transfer, the MRT-LBM results in terms of the average Nusselt number, Nu, obtained from the simulations are compared with the available data of SRTLBM (Seta et al., 2006a), finite difference data of de Vahl Davis (1983), and finite element data of Nithiarasu et al. (1997) for the clear fluid (Pr =0.71) in a side-heated square cavity under the same boundary conditions for the laminar flow, where 10 <sup>3</sup> ≤ 10 <sup>7</sup> 512 × 512 16.81 16.79 16.523 16.609 10 <sup>8</sup> 640 × 640 30.81 30.51 30.225 30.221 10 <sup>9</sup> 1,024 × 1024 55.80 57.35 - 54.561 Ra ≤ 10 <sup>6</sup> . For the transition to turbulent flows, the present results are also compared with the available results of SRT-LBM of Vishnampet et al. (2011) and Dixit and Babu (2006), and the spectral method of Le Quéré (1991), where the Ra ranges from 10 <sup>7</sup> to 10 <sup>9</sup> . In these cases, the Darcy number Da = 10 <sup>8</sup> and the porosity ǫ = 0.9999 have been considered. The results are given TABLE 2 | Comparison of the present results in terms of the average Nusselt number, Nu, with pure fluid results for Pr = 0.71, Da = 10 <sup>8</sup>, and ǫ <u>= 0.9999.</u> Ra Lattice size de Vahl Davis (1983) FEM Nithiarasu et al. (1997) SRT-LB Seta et al. (2006a) Present 10 <sup>3</sup> 256 × 256 1.116 1.127 1.1166 1.1299 10 <sup>4</sup> 256 × 256 2.238 2.245 2.2423 2.2655 10 <sup>5</sup> 256 × 256 4.509 4.521 4.5082 4.5106 10 <sup>6</sup> 256 × 256 8.817 8.800 8.3263 8.8135 Lattice size Vishnampet et al. (2011) (Pr = 1.0) Dixit and Babu (2006) Le Quéré (1991) Present FIGURE 7 | Streamlines (top) and isotherms (bottom) for pure fluids for Pr <u>= 0.71: (A) Ra = 10</u> <sup>7</sup>, (B) Ra = 10 <sup>8</sup>, and (C) Ra = 10 <sup>9</sup> while ǫ <u>= 0.9999 and Da = 10</u> <sup>8</sup> . in Table 2, and shows compliance to Ra = 10 <sup>8</sup> . For Ra = 10 <sup>9</sup>, the average Nusselt number of Dixit and Babu (2006) is 57.35, but in the present case it is 54.56. Figures 7A–C depicts the streamlines and isotherms for the transition to turbulent flows while Pr = 0.71 and Ra = 10 <sup>7</sup> to Ra = 10 <sup>9</sup> when Da = 10 <sup>8</sup> and ǫ = 0.9999. From these figures, it is clearly seen that the pattern of the streamlines and isotherms for Ra = 10 <sup>7</sup> and 10 <sup>8</sup> coincides with the available results in the literature, but for Ra = 10 <sup>9</sup>, it varies slightly; because the results of Ra = 10 <sup>7</sup> and 10 <sup>8</sup> are for transitional flows, but the flow is turbulent for Ra = 10 <sup>9</sup> ( Dixit and Babu, 2006). 5.3. Natural Convection Flow With Porous Media for Ra = 10 <sup>3</sup> to 10 <sup>10</sup> In Table 3, the present numerical results are compared with the previous experimental results of Sathe et al. (1987) for different values of Ra, Pr, and Da while the aspect ratio A = 10. The comparison shows excellent compliance, and the maximum error is 2.2%. So, the present MRT-LBM method is suitable for simulating the flow phenomena and heat transfer for the porous media. The streamlines and isotherms for the low Rayleigh number, Ra ranges from 10 <sup>3</sup> to 10 <sup>6</sup> while Da = 10 <sup>−2</sup> and ǫ = 0.6, are depicted in Figures 8A–D . For Da = 10 <sup>−2</sup>, the fluid flow resembles a clear fluid where conduction dominates for Ra = 10 <sup>3</sup> and convection dominates for higher Ra values. Figures 9A–D shows the streamlines and isotherms for the relatively high Rayleigh number with Darcy (Da ≤ 10 <sup>−6</sup> ) and non-Darcy (Da ≥ 10 <sup>−4</sup> ) regimes while ǫ = 0.4. The pattern of the streamlines and isotherms are clearly different for the Darcy and non-Darcy regions and they are qualitatively similar to the results of Dixit and Babu (2006). 1.048 1.72 6.30 2.75 2.78 2.2 2.47 6.11 3.30 3.24 1.8 3.04 6.07 3.70 3.64 1.6 3.672 1.02 6.18 3.35 3.35 0.0 1.67 6.16 4.07 4.16 2.2 2.38 6.22 4.69 4.63 1.3 The effects of the Rayleigh number on the velocity distribution are depicted in Figures 10A,B while Da = 10 <sup>−2</sup> and ǫ = 0.4. It is seen that the velocity increases while increasing the Rayleigh numbers. For both velocity distributions, the larger velocity occurs near the walls, and the minimum velocity occurs at the center of the cavity where minimum values of the stream function occur. The local rate of heat transfer in terms of the local Nusselt number Nu is illustrated in Figures 11A,B for different values of Ra while Da = 10 <sup>−2</sup> and ǫ = 0.4 and for different values of Da while Ra = 10 <sup>9</sup> and ǫ = 0.6, respectively. The local Nusselt number increases while increasing the Rayleigh numbers, but the local Nu decreases while decreasing the Darcy numbers. In Table 4, the average Nusselt number, Nu, has been inserted for different values of Ra = 10 <sup>3</sup> to 10 <sup>10</sup>, Darcy number Da = 10 <sup>−2</sup> to 10 <sup>−7</sup>, and the porosity ǫ = 0.4 and 0.6. The results obtained by the present MRT-LBM are compared with the results obtained by the FEM of Nithiarasu et al. (1997), SRT-LBM of TABLE 3 | Comparison of the present average Nusselt number, Nu for ǫ = 0.5, with the previous experimental results of Sathe et al. (1987) in a tilled cavity with porous media while the aspect ration A = 10. Da × 10 <sup>−4</sup> Ra × 10 <sup>6</sup> Pr Experimental Sathe et al. (1987) Present Error (%) FIGURE 8 | Streamlines (top) and isotherms (bottom): (A) Ra = 10 <sup>3</sup>, (B) Ra = 10 <sup>4</sup>, (C) Ra = 10 <sup>5</sup>, and (D) Ra = 10 <sup>6</sup> while Pr <u>= 1.0, Da = 10</u> <sup><u>−2</u></sup>, and ǫ <u>= 0.6.</u> FIGURE 9 | Streamlines (top) and isotherms (bottom) for (A) Da = 10 <sup>−2</sup>, Ra = 10 <sup>5</sup>, (B) Da = 10 <sup>−4</sup>, Ra = 10 <sup>7</sup>, (C) Da = 10 <sup>−6</sup>, Ra = 10 <sup>9</sup>, and (D) Da = 10 <sup>−7</sup>, Ra = 10 <sup>10</sup> while Pr <u>= 1.0 and ǫ</u> <u>= 0.4.</u> Guo and Zhao (2005), and the SRT-LBM of Vishnampet et al. (2011). The comparison shows that the excellent compliance. A set of new results for very high and very small Darcy numbers are presented in Table 4 at the bottom. For ǫ = 0.4 and 0.6, the average Nusselt number increases while the Rayleigh number increases from Ra = 10 <sup>8</sup> to 10 <sup>10</sup> keeping the Darcy number fixed at Da = 10 <sup>−7</sup> . 5.4. Mixed Convection Flow in a Lid-Driven Square Cavity In the mixed convection case, the fluid velocity is nondimensionalized by the lid velocity U = 0.1, and the temperature is similar to natural convection flow. Firstly, the code is validated while the heated lid is moving along the x-direction in pure fluid case, considering Gr = 100 and Re = 100, 400, and 1,000. Figures 12A–C show the velocity and temperature distribution, respectively, while Re = 400, Gr = 100, Da = 10 <sup>8</sup>, and ǫ = 1. The comparison of these velocity and temperature distributions with the results (Iwatsu et al., 1993; Khanafer and Chamkha, 1999) shows an excellent compliance. Another comparison has been made with regard to the average Nusselt number, Nu, that is shown in Table 5 for the three different Reynolds numbers, Re = 100, 400, and 1,000, and Gr = 100. The agreement of the average Nusselt number with the availbale results of Iwatsu et al. (1993), Khanafer and Chamkha (1999); Khanafer et al. (2007), FIGURE 10 | Velocity distribution: (A) u-velocity and (B) v-velocity for different values of Ra while Pr <u>= 1.0, Da = 10</u> <sup><u>−2</u></sup>, and ǫ <u>= 0.4.</u> FIGURE 11 | Local Nusselt number Nu for (A) different Ra values while Da = 10 <sup><u>−2</u></sup> and ǫ <u>= 0.4 and (B) different Da value while Ra = 10</u> <sup>9</sup>, Pr <u>= 1.0, and ǫ</u> <u>= 0.6.</u> Abdelkhalek (2008), Tiwari and Das (2007), and Kefayati et al. (2012) is quite acceptable. Figures 13A–D depict the streamlines (top) and isotherms (bottom) for the two different Reynolds numbers while Pr = 0.71 and Gr = 100. For Re = 400 and 1,000, there are three vortexes: primary, secondary, and tertiary. The primary vortex spans the whole cavity except the bottom right and left corners. In the isotherms, it is seen that the maximum temperature occurs near the top wall and the minimum at the bottom wall, and, qualitatively, these results agree with the results of Iwatsu et al. (1993) and Khanafer and Chamkha (1999). 5.5. Mixed Convection Flow in Lid-Driven Square Cavity With Porous Media The effects of the Darcy number, Da, on the flow field and temperature distribution is illustrated in Figures 14A–C while Re = 400 and ǫ = 0.4. From the frame (a) and (b), it is observed that u at x = 0.5 and v at y = 0.5 decrease for decreasing Darcy numbers. It is obvious, for the smaller values of Da, that increasing the porous matrix inside the cavity delays the fluid motion. But the temperature, theta, at x = 0.5 is enhanced for smaller values of Da. Figures 15A–D depict the streamlines (top) and isotherms (bottom) for the two different porosities ǫ = 0.4 and 0.6 while Gr = 100 and Re = 1,000. From the frames of the streamlines and isotherms, it is clearly seen that the effect of porosity in the porous media is significant. Changing the porosity from ǫ = 0.4 to ǫ = 0.6 changes the distribution of the stream function and isotherms that in turn will change the rate of heat transfer. For the large value of ǫ = 0.6, the center of the primary vortex shifted to the top right corner with an increase in the temperature of the fluid inside the cavity. The average Nusselt number, Nu, is inserted in Table 6 for different values of Reynolds number, Re, Darcy number, Da, and for ǫ = 0.4 and 0.6 while Gr = 100. For higher Re, the Nu increases, but for decreasing Da, the average rate of heat transfer is reduced. The effects of porosity are also significant in the rate of heat transfer. The average rate of heat transfer decreases for increasing values of porosity ǫ, which contradicts what is observed with natural convection. TABLE 4 | The average Nusselt number, Nu, with the Brinkman–Forchheimer model for Pr =1.0. ǫ = 0.4 ǫ = 0.6 Da Ra Lattice size Nithiarasu et al. (1997) Guo and Zhao (2005) Vishnampet et al. (2011) Present Nithiarasu et al. (1997) Guo and Zhao (2005) Vishnampet et al. (2011) Present 10 <sup>−2</sup> 10 <sup>3</sup> 256 × 256 1.010 1.008 - 1.0197 1.015 1.012 - 1.0240 10 <sup>4</sup> 256 × 256 1.408 1.367 - 1.3546 1.530 1.499 - 1.5079 10 <sup>5</sup> 256 × 256 2.983 2.998 - 3.0293 3.555 3.422 - 3.4855 10 <sup>6</sup> 256 × 256 - - - 6.1853 - - - 7.1410 10 <sup>−4</sup> 10 <sup>5</sup> 256 × 256 1.067 1.066 1.060 1.0681 1.071 1.068 1.063 1.0914 10 <sup>6</sup> 256 × 256 2.550 2.603 2.614 2.6263 2.725 2.703 2.725 2.7418 10 <sup>7</sup> 512 × 512 7.810 7.788 7.783 7.7831 8.183 8.457 8.576 8.1243 10 <sup>8</sup> 640 × 640 - - 16.960 16.841 - - 19.210 18.895 10 <sup>−6</sup> 10 <sup>7</sup> 640 × 640 1.079 1.077 1.068 1.1095 1.079 1.077 1.068 1.1100 10 <sup>8</sup> 640 × 640 2.970 2.969 3.152 2.9603 2.997 2.962 3.170 2.9801 10 <sup>9</sup> 1, 024 × 1, 024 11.460 11.395 12.590 11.673 11.790 11.594 13.05 11.761 10 <sup>−7</sup> 10 <sup>8</sup> 640 × 640 - - - 1.1590 - - - 1.1727 10 <sup>9</sup> 1, 024 × 1, 024 - - - 5.0369 - - - 5.0402 10 <sup>10</sup> 2, 048 × 2, 048 - - - 12.623 - - - 13.111 (Here FEM Nithiarasu et al., 1997, SRT-LBM Guo and Zhao, 2005, and SRT-LBM Vishnampet et al., 2011). FIGURE 12 | Comparison of the present study’s mixed convection results with the available results of Iwatsu et al. (1993) and Khanafer and Chamkha (1999): (A) u/U velocity, (B) v/U velocity, and (C) temperature θ while Re = 400, Gr <u>= 100, Pr</u> <u>= 0.71, and no porous media.</u> TABLE 5 | Mixed convection: comparison of the average Nusselt number, Nu, with the available numerical results of Iwatsu et al. (1993), Khanafer and Chamkha (1999); Khanafer et al. (2007), Abdelkhalek (2008), Tiwari and Das (2007), and Kefayati et al. (2012) for Gr <u>= 100 and Pr</u> <u>= 0.71.</u> Re Ri Lattice size Iwatsu et al. (1993) Khanafer and Chamkha (1999) Khanafer et al. (2007) Abdelkhalek (2008) Tiwari and Das (2007) Kefayati et al. (2012) Present 100 0.01 256 × 256 1.94 2.01 2.02 1.985 2.10 2.09 2.077 400 0.00062 256 × 256 3.84 3.91 4.01 3.88 3.85 4.08 4.032 1,000 0.0001 512 × 512 6.33 6.33 6.42 6.35 6.33 6.55 6.422 5.6. GPU Performance Over CPU Table 7 shows a comparison of the GPU parallel performance over a sequential CPU performance in terms of the simulation time per iteration step. The GPU performance is higher than the CPU performance, and the speed up is calculated as the ratio of CPU simulation time over GPU time. From this table, it is interesting to see that for a 128 × 128 lattice size, the simulation in GPU is approximately 19 times faster FIGURE 13 | Streamlines (top): (A) Re = 400 and (B) Re = 1,000 and isotherms (bottom): (C) Re = 400 and (D) Re = 1,000 while Pr <u>= 0.71 and no porous media.</u> FIGURE 14 | Velocity and temperature distibution for different values of Da: (A) u/U-velocity, (B) v/U and -velocity, and (C) temperature θ while Re = 400, Gr = 100, Pr <u>= 1, and ǫ</u> <u>= 0.4.</u> than the CPU, but for a 2,048 × 2,048 lattice, it is 144 times faster. The performance of the GPU implementation strongly depends on the grid size. So, for larger grid problems, the GPU performance is better than the lower grid size. Achieving better numerical results using LBM requires larger computational grid size. This requirement is a crucial factor for the overall performance optimization. Since CPU has more latency in processor clock speed than GPU hardware, in the case of the smaller computational grid, the performance FIGURE 15 | Streamlines (top): (A) ǫ = 0.4 and (B) ǫ = 0.6 and isotherms (bottom): (C) ǫ = 0.4, and (D) ǫ = 0.6 while Re = 1,000, Gr = 100, Pr = 1, and Da = 10 <sup><u>−2</u></sup> . TABLE 6 | Mixed convection case: the average Nusselt number, Nu, with the Brinkman–Forchheimer model for Pr =1.0. Gr Da Re Lattice size ǫ = 0.4 ǫ = 0.6 10 <sup>−1</sup> 400 256 × 256 4.511 4.043 1,000 512 × 512 7.255 6.569 10 <sup>−2</sup> 400 256 × 256 3.265 2.898 100 1,000 512 × 512 7.255 6.569 1,000 512 × 512 5.253 4.334 environment, the GPU hardware requires a minimum amount of grid size allocation in global memory bus to occupy all of its processors for a synchronized task execution. Lower latency in device to host memory transfer is seen in smaller grid allocation, which can potentially degrade the overall performance of the numerical analysis. This latency issue can be significantly evaded using larger grid allocation for hiding the memory issues by instantaneous data sharing among large amounts of scalar processors. Moreover, the memory latency issue can be avoided with the assignment of the larger grid for the numerical calculation. Thus, the overall performance can be improved by gradually incrementing the grid size of the numerical model. Also, the performance speed up becomes substantially better in GPU than CPU programs whenever the grid size is incremented. According to Lin et al. (2013), larger computational grids require more arithmetic operations that would hide the memory latency and, hence, show a greater parallel performance. of the numeric model using sequential programming in CPU surpasses the model implemented in the GPU parallel computing environment. However, GPU has more throughput than CPU because of its many processor architectures, which are very suitable for parallel task execution of numerical calculations. The GPU hardware consists of an array of scalar processors, which are executed in a group predefined in terms of the GPU hardware. During the invocation of the parallel code in CUDA computing TABLE 7 | MRT-LBM simulation time in CPU and GPU for different mesh arrangements. Lattice size Time (s)/step: CPU GPU Speed up = tCPU/tGPU 128 × 128 0.00524 0.000275 19.05 256 × 256 0.04105 0.00073 56.23 512 × 512 0.18532 0.002566 72.22 1,024 × 1,024 0.29535 0.01004 88.25 2,048 × 2,048 5.76447 0.040113 143.71 6. CONCLUSIONS In this paper, a double MRT-LBM is proposed for the porous media with the Brinkman–Forchheimer extended Darcy model to simulate the natural and mixed convection flows in a square cavity. Numerical simulation has been done using the state-ofthe-art GPU parallel computing via the CUDA C platform. For the porous media, the Brinkman–Forchheimer model is directly used as the source term through the equilibrium distribution function. This approach is completely new and differs from the approach used in the SRT-LBM. The numerical results for the natural convection case are computed for the wide range of Rayleigh numbers, 10 <sup>3</sup> ≤ Re ≤ 10 <sup>10</sup>, Darcy numbers 10 <sup>−2</sup> ≤ Da ≤ 10 <sup>−7</sup>, and the porosity parameter ǫ = 0.4 and 0.6. In the mixed convectional case, the simulations are done for the Reynolds numbers Re = 400, 100 and Grashof number Gr = 100 with 10 <sup>−1</sup> ≤ Da ≤ 10 <sup>−2</sup> . For increasing Ra in natural convection and Re in mixed convection, the velocity increases, but in both cases, the velocity decreases while the Darcy number decreases. The average Nusselt REFERENCES Abdelkhalek, M. (2008). Mixed convection in a square cavity by a perturbation technique. Comput. Mater. Sci. 42, 212–219. [doi: 10.1016/j.commatsci.2007.07.004](https://doi.org/10.1016/j.commatsci.2007.07.004) Calore, E., Gabbana, A., Kraus, J., Pellegrini, E., Schifano, S., and Tripiccione, R. (2016). Massively parallel lattice–Boltzmann codes on large GPU clusters. [Parallel Comput. 58, 1–24. doi: 10.1016/j.parco.2016.08.005](https://doi.org/10.1016/j.parco.2016.08.005) Chai, Z.-H., Shi, B.-C., and Lin, Z. (2006). Simulating high Reynolds number flow in two-dimensional lid-driven cavity by multi-relaxation-time lattice Boltzmann method. Chin. Phys. 15:1855. doi: 10.1088/1009-1963/15/ 8/038 Chen, F., Xu, A., Zhang, G., and Li, Y. (2011). Multiple-relaxation-time lattice Boltzmann model for compressible fluids. Phys. Lett. A 375, 2129–2139. [doi: 10.1016/j.physa.2015.01.067](https://doi.org/10.1016/j.physa.2015.01.067) de Vahl Davis, G. (1983). Natural convection of air in a square cavity: a bench mark numerical solution. Int. J. Numer. Methods Fluids 3, 249–264. [doi: 10.1002/fld.1650030305](https://doi.org/10.1002/fld.1650030305) Delbosc, N., Summers, J. L., Khan, A., Kapur, N., and Noakes, C. J. (2014). Optimized implementation of the Lattice Boltzmann Method on a graphics processing unit towards real-time fluid simulation. Comput. Math. Appl. 67, [462–475. doi: 10.1016/j.camwa.2013.10.002](https://doi.org/10.1016/j.camwa.2013.10.002) d’Humières, D. (1992), “Generalized lattice Boltzmann Equations, Rarefied Gas Dynamics: Theory and Simulations,” in Progress in Astronautics and number, Nu, increases for increasing porosity ǫ in natural convection, but in mixed convection, the opposite phenomena occurred. The present results are compared with the available results computed by the finite difference, FEM and SRT-LBM, and the comparison indeed shows better agreement. It is also wellknown that the MRT-LBM is superior to SRT-LBM in terms of numerical stability. The forcing term is implemented by nine discrete forcing moments that are added separately with the moment’s space. The approach proposed in the present study for porous media with MRT-LBM can be used for other applications in fluid flow and heat transfer simulations. Using CUDA C, the existing MRT-LBM FORTRAN 90 code has been re-written for GPU parallel computing that speeds up the simulation significantly. To be precise, in this Tesla k40 GPU, it is 144 times faster than the core i7 CPU simulation with a 2,048 × 2,048 lattice size. The GPU is more efficient for larger grid problems than for smaller grid problems. AUTHOR CONTRIBUTIONS MM and MH have done the all simulations and completed the first draft of writing. MK has helped to write the code in GPU using CUDA C and edited the writing. SS edited the manuscript. ACKNOWLEDGMENTS MM gratefully acknowledges NVIDIA Corporation for granting the Tesla k40 GPU card and the PGI group for providing the University developer license of PGI Accelerator Fortran/C/C++ compiler for a Workstation in Linux. This research is conducted with financial support from North South University (NSU) Faculty Research Grant 2016–2017. Aeronautics Vol. 159, eds B. D. Shizgal and D. P. Weaver (Washington, DC: AIAA), 450–458. Dixit, H. N., and Babu, V. (2006). Simulation of high Rayleigh number natural convection in a square cavity using the lattice Boltzmann method. Int. J. Heat [Mass Trans. 49, 727–739. doi: 10.1016/j.ijheatmasstransfer.2005.07.046](https://doi.org/10.1016/j.ijheatmasstransfer.2005.07.046) Du, R., and Liu, W. (2013). A new multiple-relaxation-time lattice Boltzmann method for natural convection. J. Sci. Comput. 56, 122–130. [doi: 10.1007/s10915-012-9665-9](https://doi.org/10.1007/s10915-012-9665-9) Du, R., Shi, B., and Chen, X. (2006). Multi-relaxation-time lattice Boltzmann model for incompressible flow. Phys. Lett. A 359, 564–572. [doi: 10.1016/j.physleta.2006.07.074](https://doi.org/10.1016/j.physleta.2006.07.074) Ergun, S. (1952). Fluid flow through packed columns. Chem. Eng. Prog. 48, 89–94. Erturk, E., Corke, T. C., and Gökçöl, C. (2005). Numerical solutions of 2-D steady incompressible driven cavity flow at high Reynolds numbers. Int. J. Numer. [Methods Fluids 48, 747–774. doi: 10.1002/fld.953](https://doi.org/10.1002/fld.953) Fattahi, E., Farhadi, M., Sedighi, K., and Nemati, H. (2012). Lattice Boltzmann simulation of natural convection heat transfer in nanofluids. Int. J. Therm. Sci. [52, 137–144. doi: 10.1016/j.ijthermalsci.2011.09.001](https://doi.org/10.1016/j.ijthermalsci.2011.09.001) Ghia, U. G., Ghia, K. N., and Shin, C. T. (1982). High-Re solutions for incompressible flow using the Navier-Stokes equations and a multigrid method. J. Comp. Phys. 48, 387–411. Guo, X., Zhong, C., Zhuo, C., and Cao, J. (2014). Multiple-relaxation-time lattice Boltzmann method for study of two-lid-driven cavity flow solution multiplicity. [Theor. Comput. Fluid Dyn. 28, 215–231. doi: 10.1007/s00162-013-0312-y](https://doi.org/10.1007/s00162-013-0312-y) Guo, Y., Bennacer, R., Shen, S., Ameziani, D., and Bouzidi, M. (2010). Simulation of mixed convection in slender rectangular cavity with lattice Boltzmann method. [Int. J. Numer. Methods Fluids 20, 130–148. doi: 10.1108/09615531011008163](https://doi.org/10.1108/09615531011008163) Guo, Z., and Shu, C. (2008). Lattice Boltzmann Method and Its Application in Engineering, Vol. 3. Singapore: Mainland Press Pte Ltd. Guo, Z., and Zhao, T. S. (2002). Lattice Boltzmann model for incompressible flows through porous media. Phys. Rev. E Stat. Nonlin. Soft Matter Phys. 66:036304. [doi: 10.1103/PhysRevE.66.036304](https://doi.org/10.1103/PhysRevE.66.036304) Guo, Z., and Zhao, T. S. (2005). A lattice Boltzmann model for convection heat transfer in porous media. Numer. Heat Trans. 47, 157–177. [doi: 10.1080/10407790590883405](https://doi.org/10.1080/10407790590883405) Iwatsu, R., Hyun, J. M., and Kuwahara, K. (1993). Mixed convection in a driven cavity with a stable vertical temperature gradient. Int. J. Heat Mass Transfer 36, 1601–1608. Kefayati, G., Hosseinizadeh, S., Gorji, M., and Sajjadi, H. (2012). Lattice Boltzmann simulation of natural convection in an open enclosure subjugated to water/copper nanofluid. Int. J. Therm. Sci. 52, 91–101. [doi: 10.1016/j.ijthermalsci.2011.09.005](https://doi.org/10.1016/j.ijthermalsci.2011.09.005) Khanafer, K. M., Al-Amiri, A. M., and Pop, I. (2007). Numerical simulation of unsteady mixed convection in a driven cavity using an externally excited sliding [lid. Eur. J. Mech. B/Fluids 26, 669–687. doi: 10.1016/j.euromechflu.2006.06.006](https://doi.org/10.1016/j.euromechflu.2006.06.006) Khanafer, K. M., and Chamkha, A. J. (1999). Mixed convection flow in a lid driven enclosure filled with a fluid-saturated porous medium. Int. J. Heat Mass Transfer 42, 2465–2481. Ladd, A. J. C. (1997). Sedimentation of homogeneous suspensions of non Brownian spheres. Phys. Fluids 9, 491–499. Lallemand, P., and Luo, L. S. (2000). Theory of the lattice Boltzmann method: dispersion, dissipation, isotropy, Galilean invariance, and stability. Phys. Rev. [E 61:6546. doi: 10.1103/PhysRevE.61.6546](https://doi.org/10.1103/PhysRevE.61.6546) Le Quéré, P. (1991). Accurate solutions to the square thermally driven cavity at high Rayleigh number. Comput. Fluids 20, 29–41. Lin, L.-S., Chang, H.-W., and Lin, H.-W. (2013). Multi relaxation time lattice Boltzmann simulations of transition in deep 2D lid driven cavity using GPU. Comput. Fluids [80, 381–387. doi: 10.1016/j.compfluid.2012.01.018](https://doi.org/10.1016/j.compfluid.2012.01.018) Mezrhab, A., Moussaoui, M. A., Jami, M., Naji, H., and Bouzidi, M. (2010). Double MRT thermal lattice Boltzmann method for simulating convective flows. Phys. [Lett. A 374, 3499–3507. doi: 10.1016/j.physleta.2010.06.059](https://doi.org/10.1016/j.physleta.2010.06.059) Moussaoui, M. A., Jami, M., Mezrhab, A., and Naji, H. (2010b). Computation of heat transfer and fluid flow in an obstructed channel using lattice Boltzmann [method. Engn. Comput. 27, 106–116. doi: 10.1108/02644401011008540](https://doi.org/10.1108/02644401011008540) Moussaoui, M. A., Jami, M., Mezrhab, A., Naji, H., and Bouzidi, M. (2010a). Multiple-relaxation-time lattice Boltzmann computation of channel flow past a square cylinder with an upstream control bi-partition. Int. J. Numer. Methods [Fluids 64, 591–608. doi: 10.1002/fld.2159](https://doi.org/10.1002/fld.2159) Nemati, H., Farhadi, M., Sedighi, K., Ashorynejad, H. R., and Fattahi, E. (2012). Magnetic field effects on natural convection flow of nanofluid in a rectangular cavity using the lattice Boltzmann model. Sci. Iran. 19, 303–310. [doi: 10.1016/j.scient.2012.02.016](https://doi.org/10.1016/j.scient.2012.02.016) Nithiarasu, P., Seetharamu, K. N., and Sundararajan, T. (1997). Natural convective heat transfer in a fluid saturated variable porosity medium. Int. J. Heat Mass Transfer 40, 3955–3967. NVIDIA (2017). Compute Unified Device Architecture Programming Guide, version 7.5, 20 March 2017. CUDA Developer Zone, NVIDIA. Available online at: [http://docs.nvidia.com/cuda/cuda-c-programming-guide/#axzz4eZNceJtc](http://docs.nvidia.com/cuda/cuda-c-programming-guide/#axzz4eZNceJtc) Obrecht, C., Kuznik, F., Tourancheau, B., and Roux, J.-J. (2011). A new approach to the lattice Boltzmann method for graphics processing units. Comput. Math. [Appl. 61, 3628–3638. doi: 10.1016/j.camwa.2010.01.054](https://doi.org/10.1016/j.camwa.2010.01.054) Premnath, K. N., and Pattison, M. J. (2005). Computation of MHD Flows Using the Lattice Boltzmann Method. Santa Barbara, CA: MetaHeuristics, LLC. Ren, Q., and Chan, C. L. (2016a). Natural convection with an array of solid obstacles in an enclosure by lattice Boltzmann method on a CUDA computation platform. Int. J. Heat Mass Transfer 93, 273–285. [doi: 10.1016/j.ijheatmasstransfer.2015.09.059](https://doi.org/10.1016/j.ijheatmasstransfer.2015.09.059) Ren, Q., and Chan, C. L. (2016b). Numerical study of double-diffusive convection in a vertical cavity with Soret and Dufour effects by lattice Boltzmann method on GPU. Int. J. Heat Mass Transfer 93, 538–553. [doi: 10.1016/j.ijheatmasstransfer.2015.10.031](https://doi.org/10.1016/j.ijheatmasstransfer.2015.10.031) Ren, Q., and Chan, C. L. (2016b). GPU accelerated numerical study of PCM melting process in an enclosure with internal fins using lattice Boltzmann method. Int. J. Heat Mass Transfer 100, 522–535. [doi: 10.1016/j.ijheatmasstransfer.2016.04.059](https://doi.org/10.1016/j.ijheatmasstransfer.2016.04.059) Sathe, S. B., Tong, T. W., and Faruque, M. A. (1987). Experimental study of natural convection in a partially porous enclosure. J. Thermophys. 1, 260–267. Seta, T., Takegoshi, E., Kitano, K., and Okui, K. (2006b). Thermal lattice Boltzmann model for incompressible flows through porous media. J. Therm. Sci. Technol. [1, 90–100. doi: 10.1299/jtst.1.90](https://doi.org/10.1299/jtst.1.90) Seta, T., Takegoshi, E., and Okui, K. (2006a). Lattice Boltzmann simulation of natural convection in porous media. Math. Comput. Simul. 72, 195–200. [doi: 10.1016/j.ijthermalsci.2010.11.010](https://doi.org/10.1016/j.ijthermalsci.2010.11.010) Shan, X., and Chen, H. (1994). Simulation of nonideal gases and liquid-gas phase transitions by the lattice Boltzmann equation. Phys. Rev. E 49:2941. Tiwari, R. K., and Das M. K. (2007). Heat transfer augmentation in a two sided lid-driven differentially heated square cavity utilizing nanofluids. Int. J. Heat Mass Transfer 50, 2002–2018. doi: 10.1016/j.ijheatmasstransfer.2006. 09.034 Trouette, B. (2013). Lattice Boltzmann simulations of a time-dependent natural convection problem. Comput. Math. Appl. 66, 1360–1371. [doi: 10.1016/j.camwa.2013.07.024](https://doi.org/10.1016/j.camwa.2013.07.024) Vishnampet, R., Narasimhan, A., and Babu, V. (2011). High Rayleigh number natural convection inside 2D porous enclosures using the lattice Boltzmann method. ASME J. Heat Transfer 133:062501. doi: 10.1115/1. 4003534 Wang, J., Wang, D., Lallemand, P., and Luo, L.-S. (2013). Lattice Boltzmann simulations of thermal convective flows in two dimensions. Comput. Math. [Appl. 65, 262–286. doi: 10.1016/j.camwa.2012.07.001](https://doi.org/10.1016/j.camwa.2012.07.001) Xu, A., Shi, L., and Zhao, T. (2017). Accelerated lattice Boltzmann simulation using GPU and OpenACC with data management. Int. J. Heat Mass Transfer 109, [577–588. doi: 10.1016/j.ijheatmasstransfer.2017.02.032](https://doi.org/10.1016/j.ijheatmasstransfer.2017.02.032) Ye, Y., Li, K., Wang, Y., and Deng, T. (2015). Parallel computation of entropic lattice Boltzmann method on hybrid CPU–GPU accelerated system. Comput. Fluids 110, 114–121. doi: 10.1016/j.compfluid.2014. 06.002 Zhang, T., and Che, D. (2016). Double MRT thermal lattice Boltzmann simulation for MHD natural convection of nanofluids in an inclined cavity with four square heat sources. Int. J. Heat Mass Transfer 94, 87–100. [doi: 10.1016/j.ijheatmasstransfer.2015.11.071](https://doi.org/10.1016/j.ijheatmasstransfer.2015.11.071) Conflict of Interest Statement: The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest. Copyright © 2018 Molla, Haque, Khan and Saha. This is an open-access article [distributed under the terms of the Creative Commons Attribution License (CC BY).](http://creativecommons.org/licenses/by/4.0/) The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms. NOMENCLATURE English Symbols: A Aspect ratio c Lattice speed (m.s <sup>−1</sup> ) cs Sound speed (m.s <sup>−1</sup> ) Da Darcy number ei Discrete velocity components (m.s <sup>−1</sup> ) f Momentum distribution function G Buoyancy term Gr Grashof number (gβ(Th − Tc)H/ν) g Acceleration due to gravity (m.s <sup>−2</sup> ) g Thermal distribution function H Height of the cavity (m) K Permeability of the porous media M Collision matrix for D2Q9 model m Moment vectors m <sup>ep</sup> Equilibrium moment vectors N Collision matrix for D2Q5 model <u>Nu</u> Local Nusselt number Nu Average Nusselt number p Pressure (Pa) Pr Prandtl number (ν/α) Re Reynolds number (UH/ν) Ra Rayleigh number (gβ(Th − Tc)H/να) t time (s) T temperature of the fluid (K) Tw wall temperature (K) Tm mean temperature of the fluid (K) U bulk velocity (m.s <sup>−1</sup> ) ux, uy velocity along the horizontal and vertical directions (m.s <sup>−1</sup> ) x, y horizontal and vertical coordinate (m.s <sup>−1</sup> ) Greek Symbols: α thermal diffusivity (m <sup>2</sup> .s <sup>−1</sup> ) ǫ porosity of the media µ viscosity of fluid (kg.m <sup>−1</sup> s <sup>−1</sup> ) ν kinematic viscosity (m <sup>2</sup> .s <sup>−1</sup> ) - Collision operator ρ density of fluid (kg.m <sup>−3</sup> ) τ relaxation time (s) θ non-dimensional temperature

섹션 본문 58문단 · 27,551자

(제목 없음)

1A two-dimensional (2D) multiple-relaxation-time (MRT) lattice Boltzmann method (LBM) is used for porous media with the Brinkman-Forchheimer extended Darcy model to investigate the natural and mixed convection flows in a square cavity. This Brinkman-Forchheimer model is directly used through the forcing moments as source term. A Tesla K40 NVIDIA graphics card has been used for the present Graphics Process Unit (GPU) parallel computing via Compute Unified Device Architecture (CUDA) C platform. The numerical results are presented in terms of the velocity, temperature, streamlines, isotherms and local and average Nusselt numbers. For the wide range of Rayleigh numbers, (Ra = 10 3 to 10 10 ), Reynolds numbers, Darcy numbers and the porosities, the average Nusselt number is compared with the available results computed by finite element method (FEM) and single-relaxation-time (SRT) lattice Boltzmann method and the agreement shows quite well. The results are also validated with the previous experimental results. The simulations speed up maximum 144x using CUDA C in GPU comparing with the time of FORTRAN 90 code using a single core CPU simulation.NOMENCLATURE English Symbols:A aspect ratio c lattice speed (m.s −1 ) c s sound speed (m.s −1 ) Da Darcy number e i discrete velocity components (m.s −1 ) f momentum distribution function G buoyancy term Gr Grashof number (gβ(T h − T c )H/ν) g acceleration due to gravity (m.s −2 ) g thermal distribution function Ω Collision operator ρ density of fluid (kg.m −3 ) τ relaxation time (s) θ non-dimensional temperature

Introduction

2In recent years, Graphics Process Units (GPUs) play a large role in using High-Performance Computing (HPC) due to the significant larger performance than the traditional Central Process Unit(CPU) based processors. A GPU has many slim processing units on a single chip and performs in parallel a very large number of operations on a correspondingly large number of operands. GPU computing is a heterogeneous simulation system, a small part is run sequentially by the CPU and the major part is run in GPU. It has already been established that the GPU parallel computing is well accepted due to the remarkable floating point arithmetic performance. Now the GPU is considered a computational accelerator processing a massively multi-threaded architecture which has been widely used for graphical and general purpose computations, such as molecular dynamics simulations and computational fluid dynamics [1,2]. Fluid flow and convection heat transfer through porous media is an interesting and useful research area due to its application in the fields of science and engineering, such as hydrology, civil and mechanical engineering, chemical engineering and petroleum engineering, thermal management of electronic cooling and the improvement of heat transfer system, (Guo and Zhao [3]). Guo and Zhao [4] first proposed Bhatnagar-Gross-Krook (BGK) or single-relaxationtime lattice Boltzmann method for the isothermal incompressible flow in porous media. In their model, porosity parameter introduced through equilibrium distribution function and added the forcing term into the evolution equation to account for the linear and nonlinear drag forces of media using Darcy's term and {blueForchheimer's term. They successfully applied their model for the two-dimensional (2D) Poiseuille flow, Couette flow, and lid-driven cavity flow and compared their LBM results with the analytical and finite difference solutions. Latter on, Guo and Zhao [3] extended their study of the convective heat transfer using the same single-relaxation-time lattice Boltzmann method (SRT-LBM) and successfully simulated the temperature field for the natural convection of side-heated cavity and mixed convection of the channel flow through porous media.

3Following Guo and Zhao [4], Seta et al. [5,6] studied the Poiseuille flow and natural convection flow in a side-heated cavity filled with porous media using the SRT-LBM for the non-Darcy regime considering the Rayleigh number 10 3 ≤ Ra ≤ 10 6 . For the high Rayleigh number 10 3 ≤ Ra ≤ 10 10 , an extensive investigation has been done by Vishnampet et al. [7] considering the Darcy and non-Darcy regime using SRT-LBM and compared their results with available numerical and experimental results. The above-mentioned SRT-LBM has many advantages in the computational viewpoint, is intrinsic parallelism of the algorithm and the simplicity of programming over traditional finite difference, finite volume and finite element methods. It has been successfully used in various complex fluid system, such as, multiphase flow [8], suspension in fluids [9], magneto-hydrodynamics flow [10,11], nanofluids [12] and flow through porous media with variable porosity [3]- [7]. Even though these advantages, it has some shortcomings, leads numerical instability when the dimensionless relaxation time τ is close to 0.5 [13].

4It has already been established that the shortcomings in SRT-LBM are removed by using the multiple-relaxation-time lattice Boltzmann method (MRT-LBM). The MRT-LBM is numerically more stable, and it has more degrees of freedom than the SRT-LBM. Initially, Lallemand and Luo [14] constructed a generalized lattice Boltzmann equation in moment space rather than in discrete velocity space based on d'Humieres [15], that is now familiar as multiple-relaxationtime lattice Boltzmann method. Lallemand and Luo [14] analyzed the stability of the model and compared with the BGK LB equation model and found that the mechanism of separate relaxations for the kinetic modes leads to a model which was much more stable than the BGK LB equation model. There are many studies have been done by MRT-LBM, and from them, some are cited in the following sections.

5Hua et al. [16] simulated high Reynolds number flow in a lid-driven cavity by MRT-LBM for Re ranges from 20000 to 100000 and they mentioned that was the first attempt to simulate 2D cavity flow for maximum Re = 100000. Using the MRT-LBM two lid-driven cavity flow had been investigated by Guo et al. [17]. Du et al. [13] proposed an incompressible MRT-LB model and simulated the lid-driven cavity flow for Re = 100000. They also simulated the double shear layer flow for high Reynolds number and showed that the numerical results are better than that of SRT-LBM. Computation of channel flow past a square cylinder with an upstream control, bi-partition has been done using the MRT-LBM by Moussaoui et al. [18]. Du and Liu [19] investigated the natural convection flow in a side-heated cavity using the MRT-LBM for the fluid flow and SRT-LBM for the temperature field. Computation of heat transfer and fluid flow in an obstructed channel was done by Moussaoui et al. [20]. They solved the fluid flow LB equation using the MRT technique and the energy equation for temperature by the finite difference method. Few articles are available in the literature with double MRT-LBM for velocity and thermal flow simulation. Guo et al. [21] investigated the mixed convection flow in a slender rectangular cavity with the D2Q9 model for velocity and D2Q5 model for the temperature simulation. For the pure fluid flows and heat transfer simulation have been studied in [22,23,24,25,26] using double MRT-LBM. These studies are conducted the CPU simulations.

6Multi relaxation time lattice Boltzmann simulations of transitional flows in a deep 2D liddriven cavity is investigated by [27] using GPU computing. They concluded that the GPU showed the efficient performance for larger grid size problems. Xu et al. [28] have studied the double MRT lattice Boltzmann simulation of lid-driven and side-heated cavity flows using GPU in the directive-based OpenACC platform and found that the optimized data layout gives a better performance over CPU. Ren and Chan [29,30] studied SRT-LBM simulation of natural convection flow using the GPU in CUDA platform. They also investigated the SRT-LBM for velocity and MRT-LBM for total enthalpy simulation of PCM melting process in an enclosure using GPU computing [31].

7In this paper, a multiple-relaxation-time lattice Boltzmann method is used for porous media with the Brinkman-Forchheimer extended Darcy model to investigate the natural and mixed convection flows in a side or top heated square cavity using GPU computing via CUDA C platform. A FORTRAN 90 code has also been used for comparing the CPU simulation time with the simulation by CUDA C in GPU. The Brinkman-Forchheimer model is used as a source term as forcing moments . Following [21]- [25] in double MRT-LBM, the fluid flow is simulated by D2Q9 model and the temperature field by D2Q5 model. In the natural convection simulation, the Rayleigh number is considered from Ra = 10 3 to 10 10 , Darcy number Da = 10 −2 to 10 −7 and the porosity parameter is ǫ = 0.4 and 0.6. The Reynolds numbers Re = 400 and 1000 and the Grashof number Gr = 100 are considered for the mixed convection case with the same ǫ.

Governing Equations in Macro Scale

8The non-dimensional governing equations for the laminar natural and mixed convection incompressible 2D flows for porous media are [32]:

9∂u y ∂t

10where u x and u y are the velocities of the fluid along the x and y directions, p is the pressure,θ is the temperature of the fluid and ǫ is the porosity of the porous media. Here A, B and C varies for the natural and mixed convection case and D is the body force term for the porous media that is given in the next section. In the Natural convection case: A = P r, B = RaP r, C = 1 and in the Mixed convection case: A = 1/Re, B = Gr/Re 2 and C = 1/ReP r, where P r is the Prandtl number, Re is the Reynolds number, Ra is the Rayleigh number and Gr/Re 2 is the Richardson number respectively. For the present simulation, the corresponding lattice Boltzmann model of the above equations are described below:

Formulation of the problem in LBM

11In this paper, it has been employed D2Q9 lattice model MRT-LBM for simulating the fluid velocity field and D2Q5 lattice model MRT-LBM (Trouette [25]) for simulating the temperature distribution, which is briefly described below:

Multiple-Relaxation-Time Lattice Boltzmann for Fluid Flow

12The multiple-relaxation-time lattice Boltzmann equation for fluid flow the collision operation can be generalized as

13where Ω is the collision operator and F i are components of the body force which will be defined later on. It is convenient to perform the collision process in the momentum space instead of velocity space. So Eq. (5) can be transformed as

14where

15The collision matrix S in a moment space is a diagonal matrix. The nine eigen-values of S are all between 0 and 2 so as to maintain linear stability and the separation of scales, which means that the relaxation times of non-conserved quantities are much faster than the hydrodynamic time scales. The LBGK model is the special case in which the nine relaxation times are all equal, and the collision matrix S = 1 τ I, where I is the identity matrix. The diagonal collision matrix S can be written as

16where

17Here τ is the relaxation time relates to the kinematic viscosity of fluid

18where c 2 s = 1 3 . The body force F encompasses the viscous diffusion, the inertia due to the presence of a porous media, and an external term (Seta et al. [5]). The widely used Ergun's relation [33], the body force for the porous media can be defined as

19where K def = DaH 2 is the permeability of the porous medium and G = gβ(T − T m ) is the buoyancy term. Here Da is the Darcy number, H is the height of the cavity and T m = T h + T c is the reference temperature, T h and T c indicate the temperature for the heated and cold walls respectively. Including the porosity in the equilibrium moment vector m eq is

20where j x = ρu x and j y = ρu y . Here u x is the horizontal and u y is the vertical velocity components of the fluid.

21The discrete velocity components of the two dimensional (D2Q9) lattice model are: (see Figure 1(a)),

22where, c def = ∆x/∆t is the lattice speed, where ∆x = ∆t = 1 . The macroscopic fluid density ρ and velocity u are obtained from the moments of the distribution function as follows:

Multiple-Relaxation-Time Thermal Lattice Boltzmann

23Similarly, the multiple-relaxation-time thermal lattice Boltzmann the collision operation can be written as

24where g = (g 0 , g 1 , g 2 , ......, g n ) T is the thermal distribution function. Here D2Q5 model has been used for the thermal lattice Boltzmann method. The collision matrix N for D2Q5 is

25The five eigen-values of S are all between 0 and 2. The diagonal collision matrix S can be written as

26The values of s i is given in detail in Troutte [25]. They are

27These parameters corresponds to the thermal diffusivity

28For the D2Q5 thermal LB model, a depends on the thermal diffusivity α and is less than 1 to avoid the numerical instability.

29Corresponding to the distribution function g i , the equilibrium moments m eq is

30In this case, for the 5-bit two dimensional (D2Q5)lattice the discrete velocities are (see

31The temperature T can be calculated as

Application of the MRT-LBM to convective flows in a square cavity

32To show the applicability of this MRT-LBM for porous media for the convective flows two cases have been considered, one is for natural convection and the other one is mixed convection flow. For the present problem, the Boussinesq approximation is used in which all fluid properties are assumed to be constant, but the density whose variation with temperature is allowed through the buoyancy term.

Adaibatic wall

33Adaibatic wall

Porous media

34Adaibatic wall Adaibatic wall

Boundary Conditions

35For the no-slip wall the bounce-back boundary condition is applied on velocity fields. As like Trouette [25], the incoming unknown distribution function

36At a wall with a fixed temperature T w , the following boundary condition is applied for the D2Q5 model MRT thermal lattice Boltzmann simulation:

37For an adiabatic wall the anti-bounce-back condition is applied

Average rate of heat transfer

38In the heat transfer problem, the interest in calculating the rate of heat transfer in terms of the local and average Nusselt number that are defined below respectively: For natural convection flow:

39and

40For mixed convection flow:

41and

42where H is the height and L is the lenght of the cavity.

Implementation of Forcing Term in MRT-LBM

43The implementation of the forcing term (11) by adding explicitly with nine forcing moments as Guo and Shu [34]:

44With the above forcing moments, the collision process of MRT-LBM is implemented in moment space as

CUDA C Programming in GPU

45The GPU computing is a heterogeneous simulation system, a small part is done sequentially by the CPU and the major part is simulated by GPU parallel computing. CUDA programming model mainly depends on the concept of the kernel. A kernel is a function that is executed in concurrent threads on the GPU. In NVIDIA Tesla k40 architecture, maximum 1024 threads formed a block and blocks are grouped into execution grid ( Figure 3). In CUDA, there is two programming language, one is CUDA FORTRAN and the other one is CUDA C (or C++). In this study, we used CUDA C that is a slight modification of C programming language (NVIDIA [35]). For example, in a CUDA C programming, a new keyword is introduced as: global for the device (GPU) code and this function is calling from the main code using a triple angle <<< ... >>>. The heterogeneous simulation system in a CUDA code can be classified into four categories (Obrecht et. al. [36]): (i) Sequential functions run by the CPU (ii) Launching functions allowing the CPU to start a kernel (ii) Kernel run by GPU and (iv) Auxiliary functions that are inlined into the kernel at compile time.

46At the run-time, the execution grid's layout is specified and a grid may have up to three dimensions. The blocks of threads with in a grid must be identical and the threads are identified with respect to the grid using the two structures theardIdx and blockIdx, containing the three fields x, y and z. A block may only be executed on a single streaming multiprocessor, that yields an upper bound of the number of threads with in a block and in a Tesla k40 this is maximum 1024. In the present CUDA code, grid layout is using as follows: ....................................................... ...................................................... .................................................. .................................... ....................................

Data structure modification: AoS to SoA

47One of the most important changes of the data structure modification in the GPU code from the array of structure (AoS) to the structure of array (SoA). In CPU based LBM code, the data layout of the distribution function is usually arranged as AoS because CPU can use of cache memory. For example, the distribution function f i (x, t) is stored with index (i + 9 × x + 9 × N x × y) for the D2Q9 model, as depicted in Figure. 4. But GPU is functioning based on single instruction multiple threads (SIMT) execution model. In CUDA C, to meet the requirement of coalescing memory access, the data layout should be changed to SoA in LBM implementation. Then the distribution function f i (x, t) is stored with index (x + N x × y + N x × N y × i), so that the parallel threads running the same instruction can access consecutive locations in memory [37,28].

Results Discussion

48In this paper, a new approach is proposed for the convective heat transfer from the fluid saturated porous media using the GPU parallel computing via CUDA C platform. Before conducting the main simulation the present CUDA C code has been validated for the liddriven cavity flow, natural convection flow for side heated square cavity and mixed convection lid-driven cavity flow. The different cases are given below:

49In order to validate the fluid flow and heat transfer case, the MRT-LBM results in terms of the average Nusselt number, N u, obtained from the simulations are compared with the available data of SRT-LBM [5], finite difference data of de Vahl Davis [40], finite Element data of Nithiarasu et al. [32] for the clear fluid (Pr =0.71) in a side-heated square cavity under the same boundary conditions for the laminar flow where 10 3 ≤ Ra ≤ 10 6 . For the transition-toturbulent flows, the present results are also compared with the available results of SRT-LBM of Vishnampet et al. [7], Dixit and Babu [42] and the spectral method of Le Quéré [43] where the Ra ranges from 10 7 to 10 9 . In these cases, the Darcy number Da = 10 8 and the porosity ǫ = 0.9999 have been considered. The results are given in Table 2 and the agreement shows quite well up to Ra = 10 8 . For Ra = 10 9 , the average Nusselt number of Dixit and Babu [42] is 57.35 but in the present case it is 54.56. Figure 7(a)-(c) depicts the streamlines and isotherms for the transition-to-turbulent flows while P r = 0.71 and Ra = 10 7 to Ra = 10 9 while Da = 10 8 and ǫ = 0.9999. From these figures, it has been seen clearly the pattern of the streamlines and isotherms for Ra = 10 7 and 10 8 coincides with the available results in the literature, but for Ra = 10 9 varies slightly. Since the results of Ra = 10 7 and 10 8 are for transitional flows, but the flow is turbulent for Ra = 10 9 (Dixit and Babu [42]).

Natural convection flow with porous media for

50Ra = 10 3 to 10 10 In Table 3, the present numerical results are compared with the previous experimental results of Sathe et al. [41] for the different Ra, P r and Da while the aspect ratio A = 10. The comparison shows that the agreement is excellent and the maximum error is 2.2%. So, the present MRT-LBM method is suitable for simulating the flow phenomena and heat transfer for the porous media. The streamlines and isotherms for the low Rayleigh number, Ra ranges from 10 3 to 10 6 while Da = 10 −2 and ǫ = 0.6 are depicted in the Figure 8 Figure 9(a)-(d) show the streamlines and isotherms for the relative high Rayleigh number with Darcy (Da ≤ 10 −6 ) and non-Darcy (Da ≥ 10 −4 ) regime while ǫ = 0.4. The pattern of the streamlines and isotherms are clearly different for the Darcy and non-Darcy region and they are qualitatively similar with the results of (Dixit and Babu [42]).

51The effects of the Rayleigh number on the velocity distribution are depicted in Figure 11(a)-(b) while Da = 10 −2 and ǫ = 0.4. It is seen that the velocity increase while increasing the Rayleigh numbers. For both velocity distribution, larger velocity occurs near the walls and the minimum velocity occurs at the center of the cavity where minimum values of stream function occur. The local rate of heat transfer in terms of the local Nusselt number N u is illustrated in the Figure 11 In the Table 4, the average Nusselt number, N u, has been inserted for the different Ra = 10 3 to 10 10 , Darcy number Da = 10 −2 to 10 −7 and the porosity ǫ = 0.4 and 0.6. The results obtained by present MRT-LBM are compared with the results obtained by the finite element method [45,46], Khalek [47], Tiwari and Das [48] and Kefayati et al. [49] for Gr = 100, and P r = 0.71.

Re

52Ri of Nithiarasu et al. [32], SRT-LBM of Guo and Zhao [3] and the SRT-LBM of Vishnampet et al. [7]. The comparison shows the agreement is quite excellent. A set of new results are presented for very high and very small Darcy numbers that are presented in the bottom the Table 4. For ǫ = 0.4 and 0.6 the Average Nusselt number increases while the Rayleigh increases from Ra = 10 8 to 10 10 keeping the Darcy number fixed at Da = 10 −7 .

Mixed convection flow in a lid-driven square cavity

53In the mixed convection case, the fluid velocity are non-dimensionalised by the lid velocity U = 0.1 and the temperature as like natural convection flow. Firstly, the code is validated while the heated lid is moving along x-direction in pure fluid case considering the Gr = 100 and the Re = 100, 400 and 1000. Figure 12(a)-(c) shows the velocity and temperature distribution respectively while Re = 400, Gr = 100, Da = 10 8 and ǫ = 1. These velocity and temperature distribution are compared with the results of Iwatsu et al. [44] and Khanafer et al. [45] that shows an excellent agreement. Another comparison has been made regarding the average Nusselt number, N u, that is shown in Table 5 for the three different Reynolds number, Re = 100, 400 and 1000, and Gr = 100. The agreement of the average Nusselt number with the availbale results of Iwatsu et al. [44], Khanafer et al. [45,46], Khalek [47], Tiwari and Das [48] and Kefayati et al. [49] is quite acceptable. Figure 13(a)-(d) depict the streamlines (top) and isotherms (bottom) for the two different Re while P r = 0.71, Gr = 100. For Re = 400 and 1000 there three vortex, primary,secondary and tertiary. The primary vortex spans in the whole cavity except the right and left the bottom corner. In the isotherms, it is seen the maximum temperature occurs near the top wall and the minimum at the bottom wall and qualitatively these results agree with results of Iwatsu et al. [44] and Khanafer et al. [45].

Mixed convection flow in lid-driven square cavity with porous media

54The effects of the Darcy number, Da on the flow field and temperature distribution is illustrated in the Figure 14 Table 5 for the different Reynolds number,Re, the Darcy number, Da and for ǫ = 0.4 and 0.6 while Gr = 100. For the higher Re, the N u increases but for decreasing Da, reducing the average rate of heat transfer. The effects of the porosity are also significant in the rate of heat transfer. The average rate of heat transfer decreases for increasing the values of porosity ǫ that is opposite to the natural convection case. Table 7 shows a comparison of the GPU parallel performance over a sequential CPU performance in terms of the simulation time per iteration step. The GPU performance is higher than CPU and the speed up is calculated as a ratio of CPU simulation time over GPU time. From this table, it is interesting to see that for 128 × 128 lattice size the simulation in GPU speeds up approximately 19 times than the CPU but for 2048 × 2048 it is 144 times faster. The performance of the GPU implementation strongly depends on the grid size. So, for larger grid problems the GPU performance is better than the lower grid size. Achieving better numerical results using LBM requires larger computational grid size. This requirement is the crucial factor for the overall performance optimization. Since CPU has more latency in processor clock speed than GPU hardware, in the case of the smaller computational grid the performance of the numeric model using sequential programming in CPU surpasses the model implemented in GPU parallel computing environment. However, GPU has more throughput than CPU due to it's many processor architectures which are very suitable for parallel task execution of numerical calculations. GPU hardware consists an array of scalar processors which are executed in a group predefined in terms of GPU hardware. During the invocation of the parallel code in CUDA computing environment, GPU hardware requires a minimum amount of grid size allocation in global memory bus to occupy all it's processors for a synchronized task execution. Lower latency in device to host memory transfer is seen in smaller grid allocation which can potentially degrade the overall performance of the numerical analysis. This latency issue can be significantly evaded using larger grid allocation for hiding the memory issues by instantaneous data sharing among large amount of scalar processors. Moreover, the memory latency issue can be avoided with the assignment of the larger grid for the numerical calculation. Thus, the overall performance can be improved with gradually incrementing the grid size of the numerical model. Even, the performance speed up becomes substantially better in GPU than CPU programs whenever grid size is incremented. According to Lin et al. [27], for larger computational grids require more arithmetic operations, that would hide the memory latency and hence show a greater parallel performance.

Conclusions

55In this paper, a double multiple-relaxation-time lattice Boltzmann method is proposed for the porous media with the Brinkman-Forchheimer extended Darcy model to simulate the natural and mixed convection flows in a square cavity. The numerical simulation has been done using the state-of-the-art GPU parallel computing via CUDA C platform. For the porous media, the Brinkman-Forchheimer model is directly used as the source term through the equilibrium distribution function. This approach is completely new that differs with the approach used in the single-relaxation-time lattice Boltzmann method. The numerical results for the natural convection case are computed for the wide range of Rayleigh numbers, 10 3 ≤ Re ≤ 10 10 , Darcy number 10 −2 ≤ Da ≤ 10 −7 and the porosity parameter ǫ = 0.4 and 0.6. In the mixed convectional case, the simulations are done for the Reynolds number Re = 400, 100 and Grashof number Gr = 100 with 10 −1 ≤ Da ≤ 10 −2 .

56For increasing the Ra in natural convection and Re in mixed convection the velocity increases but in both cases the velocity decreases while the Darcy number decreases. The average Nusselt number, N u, increases for increasing the porosity ǫ in natural convection but in mixed convection case opposite phenomena has happened.

57The present results are compared with the available results computed by the finite difference, finite element method and single-relaxation time lattice Boltzmann method, and the comparison shows better agreement indeed. It is also well known that the MRT-LBM is superior to SRT-LBM in terms of the numerical stability. The forcing term implemented by nine discrete forcing moments that are added separately with the moment's space. The present proposed approach for the porous media with MRT-LBM can be used for other application in fluid flow and heat transfer simulation.

58Using the CUDA C, the existing MRT-LBM FORTRAN 90 code has been re-written for GPU parallel computing that speeds up the simulation significantly. Precisely, in this Tesla k40 GPU it is 144 times faster than the core i7 CPU simulation with 2048 × 2048 lattice size. For the larger grids problem, GPU is more efficient than the smaller grids problems.

참고문헌 49건

  1. Lattice Boltzmann simulation of natural convection in porous media Mathematics and Computers in Simulation · Elsevier BV · 2006 10.1016/j.matcom.2006.05.013
  2. Lattice Boltzmann simulation of natural convection dominated melting in a rectangular cavity filled with porous media International Journal of Thermal Sciences · Elsevier BV · 2010 10.1016/j.ijthermalsci.2010.11.010
  3. Experimental study of natural convection in a partially porous enclosure Journal of Thermophysics and Heat Transfer · American Institute of Aeronautics and Astronautics · 1987 10.2514/3.37
  4. Simulation of mixed convection in slender rectangular cavity with lattice Boltzmann method International Journal of Numerical Methods for Heat &amp Fluid Flow · Emerald Publishing Limited · 2010 10.1108/09615531011008163
  5. High Rayleigh Number Natural Convection Inside 2D Porous Enclosures Using the Lattice Boltzmann Method Journal of Heat Transfer · ASM International · 2011 10.1115/1.4003534
  6. Mixed convection in a square cavity by a perturbation technique Computational Materials Science · Elsevier BV · 2007 10.1016/j.commatsci.2007.07.004
  7. Multi-relaxation-time lattice Boltzmann model for incompressible flow Physics Letters A · Elsevier BV · 2006 10.1016/j.physleta.2006.07.074
  8. Parallel computation of Entropic Lattice Boltzmann method on hybrid CPU–GPU accelerated system Computers & Fluids · Elsevier BV · 2014 10.1016/j.compfluid.2014.06.002
  9. Double MRT thermal lattice Boltzmann method for simulating convective flows Physics Letters A · Elsevier BV · 2010 10.1016/j.physleta.2010.06.059
  10. Natural convective heat transfer in a fluid saturated variable porosity medium International Journal of Heat and Mass Transfer · Elsevier BV · 1997 10.1016/s0017-9310(97)00008-2
  11. Lattice Boltzmann simulation of natural convection in an open enclosure subjugated to water/copper nanofluid International Journal of Thermal Sciences · Elsevier BV · 2011 10.1016/j.ijthermalsci.2011.09.005
  12. Simulating high Reynolds number flow in two-dimensional lid-driven cavity by multi-relaxation-time lattice Boltzmann method Chinese Physics · IOP Publishing · 2006 10.1088/1009-1963/15/8/038
  13. Multiple-relaxation-time lattice Boltzmann model for compressible fluids Physics Letters A · Elsevier BV · 2011 10.1016/j.physleta.2011.04.013
  14. A New Multiple-relaxation-time Lattice Boltzmann Method for Natural Convection Journal of Scientific Computing · Springer Science+Business Media · 2012 10.1007/s10915-012-9665-9
  15. Lattice Boltzmann simulations of a time-dependent natural convection problem Computers & Mathematics with Applications · Elsevier BV · 2013 10.1016/j.camwa.2013.07.024
  16. Optimized implementation of the Lattice Boltzmann Method on a graphics processing unit towards real-time fluid simulation Computers & Mathematics with Applications · Elsevier BV · 2013 10.1016/j.camwa.2013.10.002
  17. Lattice Boltzmann simulation of natural convection heat transfer in nanofluids International Journal of Thermal Sciences · Elsevier BV · 2011 10.1016/j.ijthermalsci.2011.09.001
  18. Mixed convection in a driven cavity with a stable vertical temperature gradient International Journal of Heat and Mass Transfer · Elsevier BV · 1993 10.1016/s0017-9310(05)80069-9
  19. High-Re solutions for incompressible flow using the Navier-Stokes equations and a multigrid method Journal of Computational Physics · Elsevier BV · 1982 10.1016/0021-9991(82)90058-4
  20. Numerical simulation of unsteady mixed convection in a driven cavity using an externally excited sliding lid European Journal of Mechanics - B/Fluids · Elsevier BV · 2007 10.1016/j.euromechflu.2006.06.006
  21. Multiple‐relaxation‐time lattice Boltzmann computation of channel flow past a square cylinder with an upstream control bi‐partition International Journal for Numerical Methods in Fluids · Wiley · 2009 10.1002/fld.2159
  22. Multi relaxation time lattice Boltzmann simulations of transition in deep 2D lid driven cavity using GPU Computers & Fluids · Elsevier BV · 2012 10.1016/j.compfluid.2012.01.018
  23. A LATTICE BOLTZMANN MODEL FOR CONVECTION HEAT TRANSFER IN POROUS MEDIA Numerical Heat Transfer Part B Fundamentals · Taylor & Francis · 2005 10.1080/10407790590883405
  24. Lattice Boltzmann model for incompressible flows through porous media Physical review. E, Statistical physics, plasmas, fluids, and related interdisciplinary topics · American Physical Society · 2002 10.1103/physreve.66.036304
  25. Computation of heat transfer and fluid flow in an obstructed channel using lattice Boltzmann method Engineering Computations · Emerald Publishing Limited · 2010 10.1108/02644401011008540
  26. Sedimentation of homogeneous suspensions of non-Brownian spheres Physics of Fluids · American Institute of Physics · 1997 10.1063/1.869212
  27. A new approach to the lattice Boltzmann method for graphics processing units Computers & Mathematics with Applications · Elsevier BV · 2010 10.1016/j.camwa.2010.01.054
  28. Theory of the lattice Boltzmann method: Dispersion, dissipation, isotropy, Galilean invariance, and stability Physical review. E, Statistical physics, plasmas, fluids, and related interdisciplinary topics · American Physical Society · 2000 10.1103/physreve.61.6546
  29. Mixed convection flow in a lid-driven enclosure filled with a fluid-saturated porous medium International Journal of Heat and Mass Transfer · Elsevier BV · 1999 10.1016/s0017-9310(98)00227-0
  30. Thermal Lattice Boltzmann Model for Incompressible Flows through Porous Media Journal of Thermal Science and Technology · Japan Society Mechanical Engineers · 2006 10.1299/jtst.1.90
  31. Heat transfer augmentation in a two-sided lid-driven differentially heated square cavity utilizing nanofluids International Journal of Heat and Mass Transfer · Elsevier BV · 2006 10.1016/j.ijheatmasstransfer.2006.09.034
  32. Simulation of nonideal gases and liquid-gas phase transitions by the lattice Boltzmann equation Physical review. E, Statistical physics, plasmas, fluids, and related interdisciplinary topics · American Physical Society · 1994 10.1103/physreve.49.2941
  33. Magnetic field effects on natural convection flow of nanofluid in a rectangular cavity using the Lattice Boltzmann model Scientia Iranica · Sharif University of Technology · 2012 10.1016/j.scient.2012.02.016
  34. Natural convection of air in a square cavity: A bench mark numerical solution International Journal for Numerical Methods in Fluids · Wiley · 1983 10.1002/fld.1650030305
  35. Multiple-relaxation-time lattice Boltzmann method for study of two-lid-driven cavity flow solution multiplicity Theoretical and Computational Fluid Dynamics · Springer Science+Business Media · 2013 10.1007/s00162-013-0312-3
  36. Numerical solutions of 2-D steady incompressible driven cavity flow at high Reynolds numbers International Journal for Numerical Methods in Fluids · Wiley · 2005 10.1002/fld.953
  37. Simulation of high Rayleigh number natural convection in a square cavity using the lattice Boltzmann method International Journal of Heat and Mass Transfer · Elsevier BV · 2005 10.1016/j.ijheatmasstransfer.2005.07.046
  38. Lattice Boltzmann simulations of thermal convective flows in two dimensions Computers & Mathematics with Applications · Elsevier BV · 2012 10.1016/j.camwa.2012.07.001
  39. Natural convection with an array of solid obstacles in an enclosure by lattice Boltzmann method on a CUDA computation platform International Journal of Heat and Mass Transfer · Elsevier BV · 2015 10.1016/j.ijheatmasstransfer.2015.09.059
  40. Numerical study of double-diffusive convection in a vertical cavity with Soret and Dufour effects by lattice Boltzmann method on GPU International Journal of Heat and Mass Transfer · Elsevier BV · 2015 10.1016/j.ijheatmasstransfer.2015.10.031
  41. Double MRT thermal lattice Boltzmann simulation for MHD natural convection of nanofluids in an inclined cavity with four square heat sources International Journal of Heat and Mass Transfer · Elsevier BV · 2015 10.1016/j.ijheatmasstransfer.2015.11.071
  42. GPU accelerated numerical study of PCM melting process in an enclosure with internal fins using lattice Boltzmann method International Journal of Heat and Mass Transfer · Elsevier BV · 2016 10.1016/j.ijheatmasstransfer.2016.04.059
  43. Fluid Flow Through Packed Columns 1952
  44. Massively parallel lattice–Boltzmann codes on large GPU clusters Parallel Computing · Elsevier BV · 2016 10.1016/j.parco.2016.08.005
  45. Accelerated lattice Boltzmann simulation using GPU and OpenACC with data management International Journal of Heat and Mass Transfer · Elsevier BV · 2017 10.1016/j.ijheatmasstransfer.2017.02.032
  46. Multiple-relaxation-time lattice Boltzmann modeling of incompressible flows in porous media Physica A Statistical Mechanics and its Applications · Elsevier BV · 2015 10.1016/j.physa.2015.01.067
  47. Numerical solutions of 2-D steady incompressible driven cavity flow at high Reynolds numbers International Journal for Numerical Methods in Fluids · Wiley · 2005 10.1002/fld.953
  48. Massively parallel lattice–Boltzmann codes on large GPU clusters Parallel Computing · Elsevier BV · 2016 10.1016/j.parco.2016.08.005
  49. Accurate solutions to the square thermally driven cavity at high Rayleigh number Computers & Fluids · Elsevier BV · 1991 10.1016/0045-7930(91)90025-d