<<

arXiv:1608.08730v1 [physics.comp-ph] 31 Aug 2016 ut-cl o,nneulbimphenomena non-equilibrium flow, multi-scale rpitsbitdt Elsevier to submitted Preprint [email protected] n h etflxi h rniinrgm,wl epeetd h cur gravitational The non-equilibrium presented. of be Keywords: study will the regime, for transition tool the indispensable in an be flux correlation heat the as the w such and examples observation, numerical physical Many New phenom identified. scheme. non-equilibrium the clearly the cont gravitational be and a a can UGKS, of system the provides physics itational using and flow studied the regimes be time, can different first regime in the c For physics particle flow dynamics. r local gas recover a and step As to time UGKS. able numerical of the is between construction ratio the the th in of in used tion dynamics subsequently corresponding is the which evolvin provide scale, u time to analytic be constructed an is can term, star solution forcing which so of external scheme, formation a with the numerical model such as Boltzmann a such keep system, for to gravitational important evolving and unde slowly is state system property equilibrium gravitational a isolated hydrostatic such an isothermal evolve an well- to The to method developed system. a be gas as gravitational will defined non-equilibrium field of gravitational un study under well-balanced the regimes a for flow paper, all this for In Knuds (UGKS) regimes. local cap different accurately of in to range effect algorithm wide numerical physical reliable a a and construct variation to density lenging large to due nature Abstract elBlne nfidGsKntcShm o utsaeF Multiscale for Scheme Gas-Kinetic Unified Well-Balanced A a eateto ehnc n niern cec,Cleeo College Science, Engineering and Mechanics of Department ∗ h a yaisudrgaiainlfil suulyascae iht with associated usually is field gravitational under dynamics gas The mi addresses: Email author Corresponding b eateto ahmtc,Dprmn fMcaia n Ae and Mechanical of Department Mathematics, of Department nvriyo cec n ehooy la ae a,Kowl Bay, Water Clear Technology, and Science of University rvttoa ed elblne rpry nfidgskntcsch gas-kinetic unified property, well-balanced field, gravitational KnXu) (Kun [email protected] rnpr ne rvttoa Field Gravitational Under Transport ina Xiao Tianbai a igogCai Qingdong , 081 China 100871, TabiXiao), (Tianbai a niern,Pkn nvriy Beijing University, Peking Engineering, f u Xu Kun , [email protected] opc niern,Hn Kong Hong Engineering, rospace we h rvttoa field gravitational the tween b, o,Hn Kong Hong oon, ∗ n aay ae nthe on Based galaxy. and uetenon-equilibrium the ture liintm,teUGKS the time, ollision step time and size cell e ytmi h transition the in system aacdshm eeis here scheme balanced fidgskntcscheme gas-kinetic ified system. n nta condition initial any r o scale-dependent) (or g nnme.I schal- is It number. en etmto provides method rent l eue ovalidate to used be ill sl,wt h varia- the with esult, e o h td of study the for sed uin opreserve To lution. hc a eused be can which , nu pcrmof spectrum inuum n nsc grav- a such in ena Qndn Cai), (Qingdong emlil scale multiple he etme ,2018 6, September eme, low 1. Introduction

The universe is an evolving gravitational system. The gas dynamics due to the gravi- tational force plays a critical role in the star and galaxy formation, as well as atmospheric on the planets. For an evolving gravitational system, there is almost no any validated governing equation to describe the non-equilibrium dynamics uniformly across different regimes. The well-established is mostly for the equilibrium solution. For an isolated gravitational system, under the conservation of mass, momentum, and energy, the system will eventually get to the isothermal equilibrium state from an arbi- trary initial condition. Such a steady-state solution will be maintained due to exact balance between the gravitational source term and the inhomogeneous flux function. For the study of a gravitational system, many numerical schemes have been developed. To capture such an equilibrium solution for an isolated gravitational system is a minimal requirement for a scheme which can be used in the astrophysical applications. The lack of well-balanced prop- erty may lead to spurious solution, or even present wrong physical solution for a long time evolving gravitational system. The purpose of this paper is to develop such a scheme which not only has the well-balanced property, but also be able to capture the non-equilibrium phenomena, which have not been studied theoretically or numerically for a gravitational system before. For the equilibrium flow, such as for the gravitational Euler system, many efforts have been devoted to the construction of well-balanced schemes. Leveque and Bale [1] developed a quasi-steady wave-propagation algorithm, which is able to capture perturbed quasi-steady solutions. Botta et al. [2] used local, time dependent hydrostatic reconstructions to achieve the hydrostatic balance. Xing and Shu [3] proposed a high-order WENO scheme to resolve small perturbations on the hydrostatic balance state on coarse meshes. The basic idea of these methods is to extend classical algorithm for the compressible Euler equations to the gravitational system with proper modifications. Different gas dynamic equations can be constructed under different modeling scales. In the kinetic scale, such as particle mean free path and traveling time between particle colli- sions, the Boltzmann equation is well established. In the hydrodynamic scale, even though the scale for its modeling is not clearly identified, the Euler and Navier-Stokes equations are routinely used. Due to the clear scale separation, both kinetic and hydrodynamic equations can be applied in their respective scales. However, the real gas dynamics may not have such a scale separation. With the scale variation between the kinetic and hydrodynamic ones, the gas dynamic equation should have a smooth transition from the Boltzmann to the Navier-Stokes equations. This multiple scale nature is especially important for a gravita- tional system, where due to the gravitational effect the density in the system can be varied largely, and so is the particle mean free path. With a fixed modeling scale, such as the mesh size in a numerical scheme, the cell’s Knudsen number Knc can be changed significantly. For a single gravitational system, the flow dynamics may vary from the kinetic Boltzmann modeling in the upper atmospheric layer to the hydrodynamic one in the inner high density region, with a continuous variation of flow physics. Therefore, a gravitational system has an intrinsic multiple scale nature. The corresponding numerical algorithm to simulate such a

2 system is preferable to have a property of providing a continuum spectrum of flow dynamics from rarefied to continuum one. In recent years, the unified gas-kinetic scheme has been developed for the simulation of multiple scale flow problems [4, 5, 6, 7]. This algorithm is based on the direct physical modeling on the mesh size scale, such as constructing the corresponding governing equations in such a scale. The scheme is able to capture physical solution in all flow regimes. The coupled treatment of particle transport and collision in the evaluation of a time-dependent interface flux function is the key for its cross-scale modeling and ensures a multiple scale nature of the algorithm. The mechanism of flow evolution in different regimes is determined by the ratio between the time step and the local particle collision time. In this paper, the further development of the scheme for a gravitational system is proposed. In order to develop a well-balanced gas-kinetic scheme, the most important ingredient is to take the external force effect into the flux transport across a cell interface. Attempts have been made in the construction of the schemes for the shallow water equations [8] and gas dynamic equations [9, 10, 11]. In this paper, the similar methodology is used in the unified gas kinetic scheme. The scheme can be used to study the multiple scale non-equilibrium flow phenomena under gravitational field, which has never been fully explored before. This paper is organized as following. Section 2 is about the kinetic theory under grav- itational field. Section 3 presents the construction of the unified gas-kinetic scheme for a gravitational system. Section 4 includes numerical examples to demonstrate the performance of the scheme. The last section is the conclusion.

2. Gas kinetic modeling

The gas kinetic theory describes the evolution of particle distribution function f(xi,t,ui,ξ) in space and time (xi, t). Here ui =(u,v,w) is particle velocity and ξ is the internal variable for the rotation and vibration. The evolution equation for f in the kinetic scale with the separate modeling of particle transport and collision is the so-called Boltzmann Equation,

ft + uifxi + φifui = Q(f, f), where φi is the external forcing term and Q(f, f) is the collision term. Many kinetic models, such as BGK [12], ES-BGK [13], Shakhov [14], and even the full Boltzmann equation [15], can be used in the construction of the unified gas kinetic scheme. Here we use the model equation to explain the principle for the algorithm development. The generalized one-dimensional BGK-type model with the inclusion of external force φx can be written as f + f f + uf + φ f = − , (1) t x x u τ where f + is the equilibrium state, and τ is the collision time. For the BGK equation, f + is exactly the Maxwellian distribution

K+1 2 λ 2 2 f + = g = ρ e−λ[(u−U) +ξ ], 0 π   3 where λ = ρ/(2p) and K is the dimension of ξ. For the Shakhov model equation, f + takes the form, c2 f + = g 1+(1 Pr)cq 5 /(5pRT ) , 0 − RT −     where c = u U is the peculiar velocity, q is heat flux, and Pr is . The collision term− satisfies the compatibility condition

(f + f)ψdΞ=0, − Z 1 2 2 T where ψ = 1, u, 2 (u + ξ ) is a vector of moments for collision invariants, and dΞ= dudξ. The macroscopic conservative flow variables are the moments of the particle distribution  function via ρ W = ρU = fψdΞ.   ρE Z With a local constant collision timeτ, the integral solution of Eq.(1) can be constructed by the method of characteristics,

t 1 ′ f(x,t,u,ξ)= f +(x′, t′,u′,ξ)e−(t−t )/τ dt′ τ tn (2) Z −(t−tn)/τ n n n n + e f0 (x , t ,u ,ξ),

′ ′ ′ 1 ′ 2 ′ ′ where x = x u (t t ) 2 φx(t t ) and u = u φx(t t ) are the trajectories in − − − n − − − physical and phase space, and f0 is the gas distribution function at the beginning of n-th time step. The above integral solution plays the most important role for the construction of the well-balanced UGKS.

3. Numerical algorithm 3.1. Construction of interface distribution function

In the unified scheme, the distribution function f(xi+1/2,uk) at the cell interface xi+1/2 is constructed from the evolution solution Eq.(2) for the interface flux evaluation. With n the notation of xi+1/2 = 0 and t = 0, the time-dependent interface distribution function becomes t 1 + ′ ′ ′ −(t−t′)/τ ′ f(0,t,uk,ξ)= f (x , t ,uk,ξ)e dt τ 0 (3) Z −t/τ 0 0 + e f0(x , 0,uk,ξ) where (x0,u0) is the initial location in physical and velocity space for the particle which passes through the cell interface at time t. Based on the above integral solution with particle acceleration, the well-balanced algorithm can be constructed similarly as the original UGKS.

4 Note that time accumulating effect from the external forcing term on the time evolution of the gas distribution function should be explicitly taken into account. To the second-order accuracy, the initial gas distribution function f0 around the cell interface xi+1/2 is reconstructed as

f L + σ x, x 0, i+1/2,k i,k ≤ f0(x, 0,uk,ξ)= R ( fi+1/2,k + σi+1,kx, x> 0,

L R where fi+1/2,k and fi+1/2,k are the reconstructed initial distribution functions at the left and right hand sides of the cell interface. In the current scheme, the van Leer limiter is used in the reconstruction. The equilibrium distribution function around a cell interface is approximated locally through a Taylor expansion in space and time as

g = g 1+(1 H[x])aLx + H[x]aRx + At , (4) 0 −   where g0 is the Maxwellian distribution at (x = 0, t = 0), and H[x] is the Heaviside step function. Here aL, aR, and A, are from the Taylor expansion of a Maxwellian, 1 aL,R = aL,R + aL,Ru + aL,R (u2 + ξ2)= aL,Rψ , 1 2 3 2 α α 1 A = A + A u + A (u2 + ξ2)= A ψ . 1 2 3 2 α α Based on the compatibility condition at the cell interface, the equilibrium and the cor- responding macroscopic conservative variables W0 can be determined from

(f + f) ψdΞ=0, − |x=0,t=0 Z where dΞ= dudξ, which results

L R g0ψαdΞ= W0 = fi+1/2,kψdΞ+ fi+1/2,kψdΞ. u >0 u <0 Z Xk Xk After the determination of the equilibrium state at the cell interface, its spatial slopes aL, aR can be obtained from the slopes of conservative variables on both sides of a cell interface. ∂W L ∂W R = aLg ψdΞ, = aRg ψdΞ. ∂x 0 ∂x 0   Z   Z The time derivative A of g0 is related to the temporal variation of conservative flow variables ∂W = Ag ψdΞ, ∂t 0 Z 5 and it can be calculated via time derivative of the compatibility condition d (f + f)ψdΞ =0. dt − |x=0,t=0 Z With the help of the Euler equations with external forcing term, it gives ∂g ∂g ∂W u ψdΞ φ ψdΞ= = Ag ψdΞ, − ∂x − x ∂u ∂t 0 Z Z Z where the spatial derivative can be constructed from the Taylor expansion of equilibrium distribution Eq.(4), and the velocity derivative is obtained from the exact Maxwellian dis- tribution. The result is ∂W aL,Rug ψdΞ+2 φ λ g (u U )ψdΞ= = Ag ψdΞ, − 0 x 0 0 − 0 ∂t 0 Z Z Z where U0 and λ0 are the corresponding macroscopic variables in the equilibrium state g0. T Using the equation above, we can obtain coefficients A =(A1, A2, A3) . After the determination of all coefficients, the time dependent interface distribution function becomes

−t/τ ′ ′+ f(0,t,uk,ξ)= 1 e (g0 + g ) − − − ′ + τ( 1+ e t/τ )+ te t/τ aL,Ru g −  k 0 1 τ τ( 1+ e−t/τ )+ te−t/τ + t2e−t/τ aL,Rφ g′ − − 2 x 0   + τ t/τ 1+ e−t/τ Ag′  − 0 −t/τ L 1 2 1 + e f 0 + (u φ t)t φ t σ 0 H[u φ t] i+1/2,k − k − x − 2 x i,k k − 2 x     R 1 2 1 + f 0 + (u φ t)t φ t σ 0 (1 H[u φ t]) i+1/2,k − k − x − 2 x i+1,k − k − 2 x      =gi+1/2,k + fi+1/2,k, where gi+1/2,k is relatede to equilibriume state and fi+1/2,k is the initial non-equilibrium dis- tribution. e e 3.2. Two dimensional case The unified gas-kinetic scheme is a multidimensional method, where both derivatives of flow variables in the normal and tangential directions of a cell interface are taken into account. With the external force φ~ = φx~i+φy~j, the BGK-type model in the two-dimensional Cartesian coordinate system is

f + f f + uf + vf + φ f + φ f = − , t x y x u y v τ 6 where τ = µ/p is the particle collision time and f + is the equilibrium distribution. The integral solution can be written as

t 1 ′ f(x,y,t,u,v,ξ)= f +(x′,y′, t′,u′, v′,ξ)e−(t−t )/τ dt′ τ tn (5) Z −(t−tn)/τ n n n n n n + e f0 (x ,y , t ,u , v ,ξ),

′ ′ ′ 1 ′ 2 ′ ′ ′ 1 ′ 2 ′ ′ where x = x u (t t ) 2 φx(t t ) ,y = y v (t t ) 2 φy(t t ) ,u = u φx(t t ), and v′ = v φ− (t −t′). − − − − − − − − − y − In the unified scheme, at the center of a cell interface (xi+1/2,yj) the solution fi+1/2,j,k,l is constructed from the integral solution Eq.(5). With the notations xi+1/2 = 0,yj = 0 at tn = 0, the time-dependent interface distribution function goes to

t 1 ′ ′ ′ ′ ′ − − ′ ′ f(0, 0,t,u , v ,ξ)= f +(x ,y , t ,u , v ,ξ)e (t t )/τ dt k l τ k l Z0 1 + e−t/τ f ( (u φ t)t, (v φ t)t φ t2, 0,u φ t, v φ t, ξ), 0 − k − x − l − y − 2 y k − x l − y

′ ′ ′ 1 ′ 2 ′ ′ ′ 1 ′ 2 ′ where the trajectories are x = uk(t t ) 2 φx(t t ) ,y = vl(t t ) 2 φy(t t ) ,uk = u φ (t t′), and v′ = v φ−(t t′−). − − − − − − k − x − l l − y − As a second order scheme, the initial gas distribution function f0 is reconstructed as

f L + σ x + θ y, x 0, i+1/2,j,k,l i,j,k,l i,j,k,l ≤ f0(x, y, 0,uk, vl,ξ)= R ( fi+1/2,j,k,l + σi+1,j,k,lx + θi+1,j,k,ly, x> 0,

L R where fi+1/2,j,k,l and fi+1/2,j,k,l are the reconstructed initial distribution functions at the left and right hand sides of a cell interface. The equilibrium distribution function around a cell interface is constructed as

g = g 1+(1 H[x])aLx + H[x]aRx + by + At , 0 −  L R where g0 is the Maxwellian distribution at (x =0, t = 0). Here a , a , and A are from the Taylor expansion of a Maxwellian 1 aL,R = aL,R + aL,Ru + aL,Rv + aL,R (u2 + v2 + ξ2)= aL,Rψ , 1 2 3 4 2 α α 1 b = b + b u + b v + b (u2 + v2 + ξ2)= b ψ , 1 2 3 4 2 α α 1 A = A + A u + A v + A (u2 + v2 + ξ2)= A ψ . 1 2 3 4 2 α α The coefficients above can be determined in the same way as one-dimensional case. The

7 time dependent interface distribution function writes

f(0, 0,t,u , v ,ξ)= 1 e−t/τ (g′ + g′+) k l − 0 + τ( 1+ e−t/τ )+ te−t/τ aL,Ru g′ −  k 0 1 τ τ( 1+ e−t/τ )+ te−t/τ + t2e−t/τ aL,Rφ g′ − − 2 x 0    1 + τ( 1+ e−t/τ )+ te−t/τ bv g′ τ τ( 1+ e−t/τ )+ te−t/τ + t2e−t/τ bφ g′ − l 0 − − 2 y 0   + τ t/τ 1+ e−t/τ Ag   − 0 −t/τ L 1 2 + e f 0 0+ (u φ t)t φ t σ 0 0 i+1/2,k ,l − k − x − 2 x i,k ,l    1 2 1 + (v φ t)t φ t θ 0 0 H[u φ t] − l − y − 2 y i,k ,l k − 2 x    R 1 2 + f 0 0 + (u φ t)t φ t σ 0 0 i+1/2,k ,l − k − x − 2 x i+1,k ,l    1 2 1 + (v φ t)t φ t θ 0 0 (1 H[u φ t]) − l − y − 2 y i+1,k ,l − k − 2 x     =gi+1/2,j,k,l + fi+1/2,j,k,l, (6) where gi+1/2,j,k,l is relatede to equilibriume state integration and fi+1/2,j,k,l is the initial non- equilibrium distribution. The extension of the above method to three dimensional case can be donee similarly. e 3.3. Update algorithm With the cell averaged distribution function

n 1 n f n = f = f(x, y, t ,u,v)d~xd~u, xi,yj ,t ,uk,vl i,j,k,l Ω (~x)Ω (~u) i,j k,l ZΩi,j ZΩk,l the direct modeling for the flow evolution in a discretized space gives

tn+1 n+1 n 1 ˆ fi,j,k,l =fi,j,k,l + urfr(t)∆Srdt Ω n i,j Zt r=1 n+1 X n+1 (7) 1 t 1 t + Q(f)d~xdt + G(f)d~xdt, Ω n Ω n i,j Zt ZΩi,j i,j Zt ZΩi,j

8 ˆ where fr is the time-dependent gas distribution function at cell interface. Q(f) and G(f) are the source term from collision term and gravitational field,

f + f n+1/2 Q(f)= i,j,k,l − i,j,k,l , τ ∂ ∂ G(f)= φ f n+1/2 φ f n+1/2. − x ∂u i,j,k,l − y ∂v i,j,k,l In the UGKS, we use the semi-implicit method to model the source term of distribution function

n+1 n 1 1 fi,j,k,l =fi,j,k,l + Fi−1/2,j,k,l Fi+1/2,j,k,l + Fi,j−1/2,k,l Fi,j+1/2,k,l Ωi,j − Ωi,j − +(n+1) n+1 +(n)  n  (8) ∆t f f f f ∂ ∂ i,j,k,l − i,j,k,l i,j,k,l − i,j,k,l n+1 n+1 + n+1 + n φx∆t fi,j,k,l φy∆t fi,j,k,l, 2 τ τ ! − ∂u − ∂v where the derivatives of particle velocity are evaluated via implicit upwind finite difference method in the discretized velocity space. In order to update the gas distribution function, let’s take conservative moments on Eq.(7) first. The updates of the conservation flow variables are

tn+1 tn+1 n+1 n 1 1 Wi,j = Wi,j + ∆Sr Frdt + Gi,jdt (9) Ω n · Ω n i,j t r=1 i,j t Z X Z where Fr are the fluxes of conservative flow variables, and Gi,j is the source term from external force,

∂ ∂ G = φ ∆t f φ ∆t f ψdudvdξ. (10) i,j − x ∂u i,j,k,l − y ∂v i,j,k,l ZΩk,l   Eq.(9) can be solved first, and its solution can be used for the construction of the equilibrium state in Eq.(8) at tn+1. Subsequently, the implicit Eq.(8) for f n+1 can be solved explicitly.

4. Numerical experiments

In this section, we are going to present numerical examples to validate the well-balanced UGKS. In order to demonstrate the capability of the scheme to resolve multi-scale flow physics, simulations from free molecule flow to continuum Euler and NS solutions under the gravitational field will be presented. The flow features in different regimes can be well captured by the unified scheme. For the first time, an interesting non-equilibrium phenomena in the lid-driven cavity case, such as the correlation between the heat flux and the gravitational field, will be demonstrated. The Shakhov model is used for the construction of UGKS, and hard sphere (HS) monatomic perfect gas is employed in all test cases.

9 4.1. One-dimensional hydrostatic equilibrium solution The first case originates from Leveque and Bale’s paper [1]. In the simulation, a monatomic ideal gas with γ = 5/3 is initially set up with a hydrostatic equilibrium state in the do- main x [0, 1] under the gravitational field φx = 1.0 pointing towards to the negative x-direction,∈ − ρ (x)= p (x) = exp( x),u (x)=0. 0 0 − 0 The test is for the solution with an added instant perturbation to the initial pressure,

p(x, t =0)= p (x)+ η exp( 100(x 5.0)2), 0 − − where η =0.01 is a constant. The computational domain is divided into 200 uniform cells and velocity space with 100 discretized velocity points. The Knudsen number for this test case has a value 10−4, which is basically in the continuum flow regime. The simulation result at t =0.2 is presented in Fig. 1. As analyzed in [1, 9], operator splitting methods fail to capture such a small perturbation solution, and the effect of gravity should be explicitly considered in the flux evaluation for a well-balanced scheme. It is clear that exact hydrostatic solution under gravity is well preserved by UGKS during the spreading process of the perturbation.

4.2. Shock tube problem under gravitational field The second case is the standard Sod shock tube problem under gravitational field [10, 11]. The computational domain is x [0, 1], which is divided into 100 cells. The simulation uses monatomic gas with γ =5/3 and∈ non-reflection boundary condition at both ends. The initial condition is set as

ρ =1.0, U =0.0,p =1.0, x 0.5, ≤ ρ =0.125, U =0.0,p =0.1,x> 0.5.

The gravity φx = 1.0 is in the opposite direction of x axis. The simulation results at t = 0.2 are presented.− In order to present the capability of the unified scheme to simulate flow physics in different flow regimes, we perform the simulations with different reference Knudsen number, such as Kn = 0.0001, Kn = 0.01 and Kn = 1, which correspond to typical continuum, transition, and free molecular transport. The reference Knudsen number is used to define dynamic in the reference state via variable soft sphere model (VSS),

5(α + 1)(α + 2)√π µ = Kn . (11) ref 4α(5 2ω)(7 2ω) ref − − In this simulation, we choose α =1.0 and ω =0.5 to recover a hard sphere monatomic gas. The viscosity for the hard-sphere model is,

T θ µ = µ , (12) ref T  ref 

10 where Tref is the reference temperature and θ is the index related to HS model. In this case we adopt the value θ =0.72. The local collision time is evaluated with the relation τ = µ/p. The computational results are presented in Fig. 2. It can be observed that under the gravitational potential, the particles inside the tube are ”pulled back” in the negative x- direction. In comparison with the case without gravity, such as the standard Sod text case, the particle moves towards the left hand side of the tube, which results in rising the density, temperature, pressure, and negative flow velocity in some region. This test case illustrates the capacity of the unified scheme to simulate flow physics in different regimes under gravitational field. In the continuum regime with Kn = 0.0001, the collision time is much less than the time step, which results in the Euler solution and the unified scheme becomes a shock capturing scheme due to the limited resolution in space and time. With the increment of Knudsen number, the collision time increases and the flow physics changes as well. There is a smooth transion from the Euler solution of the Riemann problem to collisionless Boltzmann solution.

4.3. Rayleigh-Taylor instability This test case comes from [1]. Consider an isothermal static ideal gas with density and pressure satisfying two segmented exponential relations in a two-dimensional polar coordi- nate (r, θ), 1.5 ρ (r)= e−α(r+r0),p (r)= e−α(r+r0), U =0, 0 0 α 0 where

α =2.68,r =0.258, r r , r =0.6(1+0.02 cos(20θ)), for density, 0 ≤ 1 and 1 α =5.53,r = 0.308, r>r , r =0.62324965, for pressure. ( 0 − 1 ( 1 The external force potential satisfies dΦ/dr =1.5, resulting in a force pointing towards the coordinate origin. The initial condition contains a density inversion in the flow region, so there will be an Rayleigh-Taylor instability around the interface under the gravitational field. The fluid motion around the Rayleigh-Taylor unstable interface is expected to be well resolved by the numerical scheme. At the same time, a well-balanced scheme should be able to keep the hydrostatic solution away from the interface. The computational mesh is a 60 60 uniform rectangular one, and the velocity space is divided into 20 20 points. Different× reference Knudsen numbers Kn = 0.0001, 0.01, and 1, × are used in the simulation. Here Eq.(11) and Eq.(12) are employed to evaluated the relation between the dynamic viscosity and the reference Knudsen number, and the same coefficients for hard-sphere model are used as the shock tube problem. The density contours at different output times are presented in Fig. 3. It is clearly demonstrated that the evolution process of Rayleigh-Taylor instability has different features at different rarefaction conditions. In the continuum regime, as seen in the first row of Fig. 3, the frequent particle collisions prevent the particle penetration and the strong mixing phenomenon happens in the interface region. However, as the Knudsen number increases, the mixing processes speed up through the particle penetration, and the phenomenon of interface instability is much weakened. Fig. 4 11 shows a scattering plot of density for all cells versus the radius from the center in the polar coordinate. It can be seen that the mixing region in the continuum regime is much narrower than that in the transition and free molecular regimes. Due to the well-balanced property of UGKS, the hydrostatic solution is well kept in the computation, and the mixing process only occurs near the Rayleigh-Taylor unstable interface.

4.4. Lid-driven cavity under gravity The lid-driven cavity problem is a complex system including boundary effect, shearing structure, heat transfer, non-equilibrium thermodynamics, etc. In this case, we calculate a multi-scale cavity problem under gravity. This test case is an ideal one to validate multi-scale methods. The square cavity has four walls with L = 1. The upper wall moves in tangential direction with a velocity Uw =0.15. The gravity is set to be φy = 1.0, 2.0 respectively in the negative y direction. The magnitude of gravity φ is denoted− by g.− The initial density − y and pressure are set up with

ρ(x, y, t = 0) = exp(φyy),p(x, y, t = 0) = exp(φyy) and wall temperature is Tw = 2. Maxwell’s accommodation boundary condition is used in the simulation. The Prandtl number of the gas is Pr = 0.66667. The cavity flow under the same initial and boundary condition with the absence of gravity φy = 0.0, is also simulated using the original unified gas-kinetic scheme for a thorough demonstration. The reference Knudsen number is defined by reference state at bottom of the cavity ρref = 1.0 and pref =1.0. The local mean free path l can be evaluated by µ p ρ l = ref ref l . (13) local µ p ρ ref ref r The reference Knudsen number Kn = 0.075 is used in the current calculation. The compu- tational domain is divided into 45 45 uniform cells, and a 28 28 Gaussian velocity space is employed. Fig. 6, 7 present the× simulation results of the two× cases under gravitational field. Fig. 5 gives the simulation results of the cavity flow with the absence of gravity. In the case under gravitational field, the movement of upper wall and gravitational force are two driving sources for the flow motion in the cavity system. The initial hydrostatic density distribution is perturbed from the upper wall movement. Due to the gravitational force, the density changes significantly along the vertical direction, so is the local Knudsen number. In other words, for this single case, the upper and lower part gas in the cavity may stay in different flow regimes. As demonstrated, even with the viscous heating at the upper wall, the temperature of the gas around the upper surface of the cavity decreases due to the energy exchange among gravitational potential energy, kinetic energy, and internal energy. In comparison with the simulation results without gravitational field, i.e., Fig. 5, the heat under gravity transports in the gravitational field direction from the cold (upper) to the hot (lower) regions. The cooling of the upper region may have similar mechanism as the dynamic cooling of in the upper atmosphere of the earth. This observation is against Fourier’s law, which is 12 also different from the non-equilibrium heat flux due to the rarefaction effect only [16], such as the case in Fig. 5. This is the first time that the effect of the gravity on the heat flux has been observed quantitatively. This is a fully non-equilibrium phenomenon. The results show that the heat flux is from the cold to the hot region due to the gravitational effect, which may be used to explain the gravity-thermal instability in astrophysics. Different from the equilibrium thermodynamics, the shift and distortion of the gas distribution function due to the external forcing term provide the dominant mechanism for the non-equilibrium heat flux, especially in the transition flow regime with modest Knudsen number. The U-velocity and V-velocity distributions at the central vertical and horizontal line of the cavity as well as the local Knudsen number are presented in Fig. 8 and Fig. 9. As presented in Fig. 8, with the increment of gravitational force, the fluid motion is mostly controlled by gravity. In the case with g = 2, the local Knudsen number changes significantly from 0.5 at top of the cavity to 0.075 at the bottom of the cavity. The multi-scale flow physics will appear inside the cavity. This case clearly demonstrates the capacity of the unified scheme to study highly complicated non-equilibrium flow phenomena.

5. Conclusion

Gas dynamics under gravitational field has a multiple scale nature with large variation of gas density in different regions. Based on the direct modeling, a well-balanced unified gas-kinetic scheme under gravitational field has been constructed in this paper for the flow simulation in all regimes. The well-balanced property of the scheme for converging and maintaining a hydrostatic equilibrium solution is validated through numerical tests. At the same time, due to the multiple scale modeling the UGKS can capture the non-equilibrium flow phenomena associated with the gravitational field. The UGKS is a reliable algorithm for flow simulations from continuum to rarefied one. In the transition regime, for the first time the non-equilibrium flow phenomenon, such as the correlation between the heat flux and gravitational field, has been observed in the cavity case. This scheme may help the modeling for the large-scale atmospheric flow around earth surface, and the quantitative study of gravity-thermal instability. The well-balanced UGKS provides an indispensable tool for the study of the multiple scale non-equilibrium gas dynamics under gravitational field.

Acknowledgement

The current research is supported by Hong Kong research grant council (16207715, 16211014, 620813), and National Science Foundation of China (91330203,91530319).

13 References

[1] Randall J LeVeque and Derek S Bale. Wave propagation methods for conservation laws with source terms. In Hyperbolic problems: theory, numerics, applications, pages 609–618. Springer, 1999. [2] N Botta, R Klein, S Langenberg, and S L¨utzenkirchen. Well balanced finite volume methods for nearly hydrostatic flows. Journal of Computational Physics, 196(2):539–565, 2004. [3] Yulong Xing and Chi-Wang Shu. High order well-balanced weno scheme for the gas dynamics equations under gravitational fields. Journal of Scientific Computing, 54(2-3):645–662, 2013. [4] Kun Xu and Juan-Chen Huang. A unified gas-kinetic scheme for continuum and rarefied flows. Journal of Computational Physics, 229(20):7747–7764, 2010. [5] Juan-Chen Huang, Kun Xu, and Pubing Yu. A unified gas-kinetic scheme for continuum and rarefied flows ii: multi-dimensional cases. Communications in Computational Physics, 12(03):662–690, 2012. [6] Juan-Chen Huang, Kun Xu, and Pubing Yu. A unified gas-kinetic scheme for continuum and rarefied flows iii: Microflow simulations. Communications in Computational Physics, 14(05):1147–1173, 2013. [7] Kun Xu. Direct modeling for computational fluid dynamics: cobnstruction and application of unified gas-kinetic schemes. 2015. [8] Kun Xu. A well-balanced gas-kinetic scheme for the shallow-water equations with source terms. Journal of Computational Physics, 178:533–562, 2002. [9] CT Tian, Kun Xu, KL Chan, and LC Deng. A three-dimensional multidimensional gas-kinetic scheme for the navier–stokes equations under gravitational fields. Journal of Computational Physics, 226(2):2003–2027, 2007. [10] Kun Xu, Jun Luo, and Songze Chen. A well-balanced kinetic scheme for gas dynamic equations under gravitational field. Advances in Applied Mathematics and Mechanics, 2(2):200–210, 2010. [11] Jun Luo, Kun Xu, and Na Liu. A well-balanced symplecticity-preserving gas-kinetic scheme for hydro- dynamic equations under gravitational field. SIAM Journal on Scientific Computing, 33(5):2356–2381, 2011. [12] Prabhu Lal Bhatnagar, Eugene P Gross, and Max Krook. A model for collision processes in gases. i. small amplitude processes in charged and neutral one-component systems. Physical review, 94(3):511, 1954. [13] Lowell H Holway Jr. New statistical models for kinetic theory: methods of construction. Physics of Fluids (1958-1988), 9(9):1658–1673, 1966. [14] EM Shakhov. Generalization of the krook kinetic relaxation equation. , 3(5):95–96, 1968. [15] Chang Liu, Kun Xu, Quanhua Sun, and Qingdong Cai. A unified gas-kinetic scheme for continuum and rarefied flows iv: Full boltzmann and model equations. Journal of Computational Physics, 314:305–340, 2016. [16] Benzi John, Xiao-Jun Gu, and David R Emerson. Effects of incomplete surface accommodation on non-equilibrium heat transfer in cavity flow: a parallel dsmc study. Computers & fluids, 45(1):197–201, 2011.

14 0.012

0.01 t=0.2 Initial state

0.008

0.006

0.004

0.002 Pressureperturbation

0

-0.002 0.2 0.4 0.6 0.8 X

Figure 1: Pressure perturbation of the hydrostatic equilibrium solution

1.4 1

Kn=1 1.2 Kn=1 0.8 Kn=0.01 Kn=0.01 Kn=0.0001 Kn=0.0001 1 0.6

0.8 0.4 Density

0.6 Velocity 0.2

0.4 0

0.2 -0.2

0 -0.4 0.2 0.4 0.6 0.8 0.2 0.4 0.6 0.8 X X

(a) Density (b) Velocity

2.8 1.4

2.6 Kn=1 1.2 Kn=0.01 Kn=1 Kn=0.0001 Kn=0.01 2.4 1 Kn=0.0001

2.2 0.8 2 0.6 1.8 Pressure

Temperature 0.4 1.6

0.2 1.4

1.2 0

1 -0.2 0.2 0.4 0.6 0.8 0.2 0.4 0.6 0.8 X X

(c) Temperature (d) Pressure

Figure 2: Sod test under gravity.

15 1 1 1 1

RHO RHO RHO RHO 0.8 0.45 0.8 0.45 0.8 0.45 0.8 0.45 0.4 0.4 0.4 0.4 0.35 0.35 0.35 0.35 0.3 0.3 0.3 0.3 0.25 0.25 0.25 0.25 0.6 0.2 0.6 0.2 0.6 0.2 0.6 0.2 0.15 0.15 0.15 0.15 0.1 0.1 0.1 0.1

Y 0.05 Y 0.05 Y 0.05 Y 0.05

0.4 0.4 0.4 0.4

0.2 0.2 0.2 0.2

0 0 0 0 0 0.2 0.4 0.6 0.8 1 0 0.2 0.4 0.6 0.8 1 0 0.2 0.4 0.6 0.8 1 0 0.2 0.4 0.6 0.8 1 X X X X

(a) t=0 (b) t=0.8 (c) t=1.2 (d) t=2.0

1 1 1 1

RHO RHO RHO RHO 0.8 0.45 0.8 0.45 0.8 0.45 0.8 0.4 0.4 0.4 0.4 0.35 0.35 0.35 0.35 0.3 0.3 0.3 0.3 0.25 0.25 0.25 0.25 0.2 0.6 0.2 0.6 0.2 0.6 0.2 0.6 0.15 0.15 0.15 0.15 0.1 0.1 0.1 0.1 0.05

Y 0.05 Y 0.05 Y 0.05 Y

0.4 0.4 0.4 0.4

0.2 0.2 0.2 0.2

0 0 0 0 0 0.2 0.4 0.6 0.8 1 0 0.2 0.4 0.6 0.8 1 0 0.2 0.4 0.6 0.8 1 0 0.2 0.4 0.6 0.8 1 X X X X

(e) t=0 (f) t=0.08 (g) t=0.16 (h) t=0.24

1 1 1 1

RHO RHO RHO RHO 0.8 0.45 0.8 0.45 0.8 0.45 0.8 0.45 0.4 0.4 0.4 0.4 0.35 0.35 0.35 0.35 0.3 0.3 0.3 0.3 0.25 0.25 0.25 0.25 0.6 0.2 0.6 0.2 0.6 0.2 0.6 0.2 0.15 0.15 0.15 0.15 0.1 0.1 0.1 0.1

Y 0.05 Y 0.05 Y 0.05 Y 0.05

0.4 0.4 0.4 0.4

0.2 0.2 0.2 0.2

0 0 0 0 0 0.2 0.4 0.6 0.8 1 0 0.2 0.4 0.6 0.8 1 0 0.2 0.4 0.6 0.8 1 0 0.2 0.4 0.6 0.8 1 X X X X

(i) t=0 (j) t=0.08 (k) t=0.16 (l) t=0.24

Figure 3: Density evolution under gravity with reference Knudsen number 0.0001, 0.01, 1

16 0.45 0.45 0.45 0.45

0.4 0.4 0.4 0.4

0.35 0.35 0.35 0.35

0.3 0.3 0.3 0.3

0.25 0.25 0.25 0.25 Density Density Density 0.2 Density 0.2 0.2 0.2

0.15 0.15 0.15 0.15

0.1 0.1 0.1 0.1

0.05 0.05 0.05 0.05

0 0 0 0 0.2 0.4 0.6 0.8 1 1.2 1.4 0 0.2 0.4 0.6 0.8 1 1.2 1.4 0 0.2 0.4 0.6 0.8 1 1.2 1.4 0 0.2 0.4 0.6 0.8 1 1.2 1.4 Radius Radius Radius Radius

(a) t=0 (b) t=0.8 (c) t=1.4 (d) t=2.0

0.45 0.45 0.45 0.45

0.4 0.4 0.4 0.4

0.35 0.35 0.35 0.35

0.3 0.3 0.3 0.3

0.25 0.25 0.25 0.25

Density 0.2 Density 0.2 Density 0.2 Density 0.2

0.15 0.15 0.15 0.15

0.1 0.1 0.1 0.1

0.05 0.05 0.05 0.05

0 0 0 0 0.2 0.4 0.6 0.8 1 1.2 1.4 0 0.2 0.4 0.6 0.8 1 1.2 1.4 0 0.2 0.4 0.6 0.8 1 1.2 1.4 0 0.2 0.4 0.6 0.8 1 1.2 1.4 Radius Radius Radius Radius

(e) t=0 (f) t=0.08 (g) t=0.16 (h) t=0.24

0.45 0.45 0.45 0.45

0.4 0.4 0.4 0.4

0.35 0.35 0.35 0.35

0.3 0.3 0.3 0.3

0.25 0.25 0.25 0.25

Density 0.2 Density 0.2 Density 0.2 Density 0.2

0.15 0.15 0.15 0.15

0.1 0.1 0.1 0.1

0.05 0.05 0.05 0.05

0 0 0 0 0.2 0.4 0.6 0.8 1 1.2 1.4 0 0.2 0.4 0.6 0.8 1 1.2 1.4 0 0.2 0.4 0.6 0.8 1 1.2 1.4 0 0.2 0.4 0.6 0.8 1 1.2 1.4 Radius Radius Radius Radius

(i) t=0 (j) t=0.08 (k) t=0.16 (l) t=0.24

Figure 4: Density distribution along the radial direction with reference Knudsen number 0.0001, 0.01, 1

17 1 1

RHO T 0.8 1.1 0.8 2.014 1.08 2.012 1.06 2.01 1.04 2.008 1.02 2.006 0.6 1 0.6 2.004 0.98 2.002 0.96 2

Y 0.94 Y 1.998 0.92 1.996 1.994 0.4 0.4 1.992

0.2 0.2

0 0 0 0.2 0.4 0.6 0.8 1 0 0.2 0.4 0.6 0.8 1 X X

(a) Density (b) Temperature and heat flux

1 1

U V 0.8 0.09 0.8 0.035 0.08 0.03 0.07 0.025 0.06 0.02 0.05 0.015 0.6 0.04 0.6 0.01 0.03 0.005 0.02 0

Y 0.01 Y -0.005 0 -0.01 -0.01 -0.015 0.4 0.4 -0.02 -0.025 -0.03 -0.035 0.2 0.2

0 0 0 0.2 0.4 0.6 0.8 1 0 0.2 0.4 0.6 0.8 1 X X

(c) U-velocity (d) V-velocity

Figure 5: Cavity without gravitational field

18 1 1

RHO T 0.8 0.95 0.8 1.98 0.9 1.975 0.85 1.97 0.8 1.965 0.75 1.96 0.6 0.7 0.6 1.955 0.65 1.95 0.6 1.945

Y 0.55 Y 1.94 0.5 1.935 0.45 1.93 0.4 0.4 0.4 1.925 1.92

0.2 0.2

0 0 0 0.2 0.4 0.6 0.8 1 0 0.2 0.4 0.6 0.8 1 X X

(a) Density (b) Temperature and heat flux

1 1

U V 0.8 0.08 0.8 0.035 0.07 0.03 0.06 0.025 0.05 0.02 0.04 0.015 0.6 0.03 0.6 0.01 0.02 0.005 0.01 0

Y 0 Y -0.005 -0.01 -0.015 0.4 0.4 -0.02 -0.025

0.2 0.2

0 0 0 0.2 0.4 0.6 0.8 1 0 0.2 0.4 0.6 0.8 1 X X

(c) U-velocity (d) V-velocity

Figure 6: Cavity at φy = 1.0 −

19 1 1

RHO T 0.8 0.9 0.8 1.9 0.8 1.85 0.7 1.8 0.6 1.75 0.5 1.7 0.6 0.4 0.6 1.65 0.3 1.6 0.2 1.55

Y Y 1.5

0.4 0.4

0.2 0.2

0 0 0 0.2 0.4 0.6 0.8 1 0 0.2 0.4 0.6 0.8 1 X X

(a) Density (b) Temperature and heat flux

1 1

U V 0.8 0.07 0.8 0.11 0.06 0.1 0.05 0.09 0.04 0.08 0.03 0.07 0.6 0.02 0.6 0.06 0.01 0.05 0 0.04

Y Y 0.03 0.02 0.01 0.4 0.4

0.2 0.2

0 0 0 0.2 0.4 0.6 0.8 1 0 0.2 0.4 0.6 0.8 1 X X

(c) U-velocity (d) V-velocity

Figure 7: Cavity at φy = 2.0 −

1 0.25

0.2 g=0 0.8 0.15 g=1 g=2

g=0 0.1 0.6 g=1 g=2 0.05 w Y

V/U 0 0.4 -0.05

-0.1 0.2

-0.15

0 -0.2 -0.2 0 0.2 0.4 0.6 0 0.2 0.4 0.6 0.8 1 U/Uw X

(a) U-velocity along the vertical center (b) V-velocity along the horizontal center line line

Figure 8: U,V velocity at the horizontal and vertical center line

20 0.5

0.45 g=0 0.4 g=1 g=2 0.35

0.3

0.25

Local Kn Local 0.2

0.15

0.1

0.05

0 0 0.2 0.4 0.6 0.8 1 Y

Figure 9: Local Knudsen number at the vertical center line

21