Gas-Kinetic Finite Volume Methods
Total Page:16
File Type:pdf, Size:1020Kb
Gas-Kinetic Finite Volume Methods K. Xu, L. Martinelli, A. Jameson Department of M.A.E, Princeton University, Prificeton N.J. 08544, USA 1 Introduction Gas-kinetic schemes developed from the BGK model have been successfully applied to 1-D and 2-D flows [1,2]. One of the advantages of the gas-kinetic approach over more conventional methods is realized when one considers the multidimensional Euler and Navier-Stokes equations. In fact, by requiring only a single scalar gas distribu- tion function f, the gas-kinetic approach greatly simplifies the calculation of mass, momentum, energy densities and their fluxes. In this paper we construct a novel 3-D method for the system of conservation laws of fluid flow. A Lax-Wendroff type scheme is developed from gas-kinetics and applied to solve time dependent problems. In the limit of infinite collision time (v = ~) our formulation reduces precisely to the kinetic representation of flux vector splitting for the Euler equations. Moreover, we introduce a new time-independent flux formulation which, when applied in conjunction with Jameson's multigrid time stepping scheme, yields efficient and accurate solutions of steady compressible flows. 2 Three Dimensional Finite Volume Gas-Kinetic Schemes In the finite volume method, the discretization is accomplished by dividing the flow into a large number of small subdomains, and applying the conservation laws in the integral form , s=0 f~ to each subdomain f~ with boundary 0fL In this equation U is the macroscopic state vector, defined as V = (p, P~, Py, Pz, e)T, where p,/~, and e are the mass, momentum, and energy densities, and F is the flux vector. In a gas-kinetic finite volume scheme the flux vectors across cell boundaries are constructed by computing the gas distribution function f. In three dimensions, we assume the BGK model as the governing equation for the distribution function f f~ + uf~ + vfy --t- Wfz : (g -- f)/'r (1) Here f is a function of space (x, y, z), time t, particle velocity (u, v, w) and internal variable ~ with K degrees of freedom(i.e. K = 2 for 7 = 1.4 gases). The relations 107 between mass p, momentum fi and energy c densities with the distribution function f are (P, P~, Py, Pz, ()T = JCjdZ, = 1,2, ...5 (2) where ¢, is the vector of moments ¢~ = (1, u,v,w,~(u1 2 + V2 + W 2 +~2)) T and dE = dudvdwd~ is the volume element in the phase space. In the BGK model the equilibrium state is described by a Maxwellian distribution g = Ae -~((~-U)~+(v-v)2+(w-W)2+~2) (3) where U,V and W are macroscopic gas velocities. For an equilibrium gas flow with f = g, the Euler equations in three dimensional space can be obtained by taking the moments of Ca in Eq.(1). On the other hand, to the first order of r, the Navier-Stokes equations, with a dynamic viscosity coefficient of v = rp (where p is the pressure), can be derived from the Chapman-Enskog expansion. Since mass, momentum and energy are conservative quantities in the process of gas evolution, f and g have to satisfy the conservation constraint f(g f)¢~dE 0, 0~ !, 2, ..:5 (4) at any point in space and time. The general solution for f in Eq.(1) in three dimensions at the position of (x, y, z) and t is f(x,y, z,t, u, v, w,~) = -;JogS1vt "x',y , z',t, u, w,~)e-(t-t')/r dt ' (5) + e-t/fro(x- ut,y- vt, z- wt) where z' = x - u(t - t'), y' = y - v(t - t'), z' = z - w(t - t') are the trajectory of a particle motion, and f0 is the initial nonequilibrium gas distribution function f at the beginning of each time step (t = 0). Two unknowns g and f0 must be determined in the above equation to obtain the solution f, so as to evaluate the fluxes across cell boundaries. We will consider the evaluation of fluxes across a boundary separating two cells in the x direction and, to simplify the notation, the point for evaluating fluxes at the cell boundary will be assumed at (x = 0, y = 0, z = 0). Generally, f0 and g can be expanded around the cell boundary as gl(1 + a~x + bly -4- clz), x < 0 fo= [.g~(l+a~x+b~y+c~z), z>0 (6) and g = g0(1 + ax + by+ ez + J]t) (7) where gt, g~ and go are local Maxwellian distribution functions. The dependence of at,b z, ...,A on the particle velocity can be obtained from the Taylor expansion of a Maxwellian such as -A = -~i J¢- -A2 'it + ~i3~ --{--~4 w Jr- .As(~ 2 + v 2 + w 2 --~ ~2) (8) 108 In order to get all the parameters in Eq.(6) and Eq.(7) at time t = 0, we need first interpolate the initial macroscopic variables. The interpolation is carried out by using a Symmetric Limited Positive (SLIP) technique originally developed by Jameson from Local Extremum Diminishing (LED) considerations [3]. All the coefficients in f0 can be obtained directly. Then, go in Eq.(7) at (x = 0, y = 0,z = 0,t = 0) can be evaluated automatically by taking the limit of Eq. (5) as t --* 0 and substituting into Eq.(4) to obtain j..+..=, .:,,.,...o <o, u>O u<O The other terms of ~, b and a in Eq.(8) at t = 0 can be computed from the new mass, momentum and energy interpolations which are continuous across the cell boundary in all three directions. Now, the only unknown term left in Eq.(8) is A. This can be evaluated as follows by substituting Eq.(6) and Eq.(7) into EQ.(5), we get f(O, O, O, t, u, v, w) = (1 - e-'lT)go -F (v(-1 -I- e -tiT) + te-tlr)(ua -t- vb -t- wa)go + r(t/r - 1 + e-q')/.go + e-qTfo(-ut,-vt,-wt) (10) with j" gl(1 :- aZut - b%t - cZwt), u > 0 fo(-ut, ~ wt~ (11) t gr(1 arut - brvt - Cwt), u < O Both f (Eq.(10)) and g (Eq.(7)) contain A. After applying the condition (4) at (x = 0, y = 0, z = 0) and integrating it over the whole time step T, such as L T i(g - f)¢c, dEdt = 0 (12) five moment equations of A can obtained, from which the five constants in A of Eq.(8) can be uniquely determined. Finally, the time-dependent numerical fluxes at a cell boundary can be computed. These fluxes satisfy the consistency condition Jc(U, U) = :P(U) for a homogeneous uniform flow, where ~c(U) is identical to the corresponding Euler fluxes in the 3-D case. Eq.(10) gives explicitly the time-dependent gas distribution function f at the cell boundary. Several limiting cases can be obtained, in particular: (i) in the hydrody- namic limit of r << T and in a smooth region one obtains schemes which are identical to these obtained from the one-step Lax-Wendroff scheme for the Navier-Stokes equa- tions, (ii) in the limit of r = oo corresponding to the collisionless Boltzmann equation, our formulation reduces precisely to the kinetic representation of flux vector splitting [4] for the Euler equations, (iii) for steady state calculations, the relaxation process can be simplified by ignoring all high-order spatial and temporal terms in the expan- sion of f and g to yield f= go + e-tlr (fo - go) = go + e(fo - go) The first term go represents the Euler fluxes, while the second term e(f0-g0) gives rise to a diffusion term which should be large near discontinuities to help fix a nonequi- 109 librium state. Thus, e -t/r can be regarded as a diffusive parameter which should be adapted to the local flow. It can he proved [5] that the entropy of go is always larger than that of f0, which guarantees that the local physical system will approach the state with larger entropy. This, for example, prevents the formation of unphysical rarefaction shocks. 3 Unsteady Flow Calculations A forward-facing step test is carried out on a uniform mesh of 240 × 80 cells and the numerical results are presented in Fig.(1.a) and Fig.(1.b) for the density and entropy distribution. Here, the collision time used is equivalent to a Reynolds number of Re ~_ 50,000 for the upstream gas flow, taking the wind tunnel height as the characteristic length scale. A slip boundary condition is imposed in order to avoid using finer meshes close to the boundary. There is no special treatment around the corner, and we never found any expansion shocks emerging from the corner. 4 Steady Flow Calculations with Multigrid Accel- eration The time independent gas-kinetic discretization scheme formulated in a previous sec- tion has been implemented in the full approximation multigrid time stepping scheme of Jameson [6]. Steady state transonic flow calculations for several airfoils have been performed to validate the simplified relaxation scheme. In these calculations, the selective parameter c is determined by a switching function calculated from local pressure gradients. Using subscripts i and j to label the mesh cells, the switching function for fluxes in the i direction is e = 1 - e -c~max(Pi+l,j'Pi,i) where a is a constant, and P/j is an appropriate pressure switch. The computational domain is an O-mesh with 160 cells in the circumferential direction and 32 cells in the radial direction. This is a fine enough mesh to produce accurate answers with standard high resolution difference schemes.