 Research
 Open Access
 Published:
A threedimensional gaskinetic flux solver for simulation of viscous flows with explicit formulations of conservative variables and numerical flux
Advances in Aerodynamics volume 2, Article number: 13 (2020)
Abstract
A truly threedimensional (3D) gaskinetic flux solver for simulation of incompressible and compressible viscous flows is presented in this work. By local reconstruction of continuous Boltzmann equation, the inviscid and viscous fluxes across the cell interface are evaluated simultaneously in the solver. Different from conventional gaskinetic scheme, in the present work, the distribution function at cell interface is computed in a straightforward way. As an extension of our previous work (Sun et al., Journal of Computational Physics, 300 (2015) 492–519), the nonequilibrium distribution function is calculated by the difference of equilibrium distribution functions between the cell interface and its surrounding points. As a result, the distribution function at cell interface can be simply calculated and the formulations for computing the conservative flow variables and fluxes can be given explicitly. To validate the proposed flux solver, several incompressible and compressible viscous flows are simulated. Numerical results show that the current scheme can provide accurate numerical results for threedimensional incompressible and compressible viscous flows.
Introduction
In the last few decades, the gaskinetic scheme has been developed in both continuum [1,2,3,4,5,6,7,8] and rarefied flow regimes [9,10,11,12]. Unlike the traditional Riemann solver [13,14,15], the gaskinetic scheme reconstructs the solution for the continuous Boltzmann equation at local cell interface. As the continuum assumption is avoided in the continuous Boltzmann equation, the gaskinetic scheme can be applied in both continuum and rarefied flow problems, which is one of the advantages as compared with traditional Riemann solver. Another advantage is that the gaskinetic scheme can compute the inviscid and viscous fluxes simultaneously from the solution of Boltzmann equation. In contrast, the traditional Riemann solver can only evaluate the inviscid flux and an additional step is required to compute the viscous flux by smooth function approximation.
Currently, there are two common types of gaskinetic schemes: the kinetic flux vector scheme (KFVS) and gaskinetic BhatnagarGrossKrook (BGK) scheme. In KFVS, the Boltzmann equation without collision term, which is also called the collisionless Boltzmann equation, is solved. Basically, there are two stages in KFVS: free transport and collision. In the free transport stage, the collisionless Boltzmann equation is solved to calculate the flux at the interface. In the collision stage, the artificial collisions are added in the calculation of initial Maxwellian distribution at the beginning of next time step. The KFVS has been demonstrated to have good positivity property for simulation of flows with strong shock waves [2]. However, owing to the fact that the numerical dissipation in KFVS is proportional to the mesh size, the KFVS usually gives more diffusive results than the Godunov or flux difference splitting (FDS) scheme [16], and is not able to give accurate NavierStokes solutions except for cases in which the physical viscosity is much larger than the numerical viscosity. Some of representative researches on KFVS include Pullin [17], Deshpande [18], Perthame [19], Mandal and Deshpande [20], and Chou and Baganoff [21].
One of the significant developments in gaskinetic schemes is the gaskinetic BGK scheme, which was firstly proposed by Prendergast and Xu [22], and further developed by Chae et al. [23], Xu [24] and other researchers. In this method, the BGK collision model is adopted in the solution process to obtain the numerical fluxes across the interface. As a consequence, the dissipation in the transport can be controlled by a real collision time, which is proportional to the dynamic viscosity. The gaskinetic BGK scheme enjoys some intrinsic advantages. Firstly, it has been shown that the gaskinetic BGK scheme is able to generate a stable and crisp shock transition in the discontinuous region with a delicate dissipative mechanism [24]. At the same time, an accurate NavierStokes solution can be obtained in the smooth region. What is more, it is demonstrated that the entropy condition is always satisfied in the gaskinetic BGK scheme and the “carbuncle phenomenon” is avoided for hypersonic flow simulations [25]. However, the gaskinetic BGK scheme is not completely free from drawbacks. It is usually more complicated and inefficient than conventional computational fluid dynamics (CFD) schemes. This is because in the gaskinetic BGK scheme, a number of coefficients related to the physical space should be calculated to evaluate the distribution function at each interface and each time step. Moreover, to the best of our knowledge, there is still no work of the gaskinetic BGK scheme which can give explicit formulations for evaluating the conservative variables and numerical fluxes.
Recently, a straightforward way to evaluate the distribution function was proposed by Sun et al. [1], which is named as gaskinetic flux solver (GKFS). Different from the gaskinetic BGK scheme [24], the nonequilibrium distribution function at cell interface is approximated by the difference of equilibrium distribution functions between the cell interface and its surrounding points in GKFS. To be specific, the equilibrium distribution functions at the surrounding points of the cell interface are firstly given by interpolation from the conservative variables at cell centers. Then, the equilibrium distribution function at cell interface can be evaluated by a streaming process from the surrounding points. After the above steps, the nonequilibrium distribution function at cell interface can be simply calculated and the explicit formulations for computing the conservative flow variables and fluxes can be derived. It has been proven that GKFS can give the same results and only requires about 60% of the computational time as compared with the conventional gaskinetic BGK scheme [1]. Inspired by the previous work of GKFS [1], a 3D GKFS is developed in this work. In the scheme, the 3D NavierStokes equations are discretized by the finite volume method and the numerical flux across the interface is evaluated by the local solution of 3D Boltzmann equation. Therefore, the present scheme can be viewed as a truly 3D flux solver. At the same time, a coordinate transformation is made at the local cell interface to transform the velocities in the Cartesian coordinate system to the normal and tangential directions of interface. In this way, all the cell interfaces can be treated using the same way for evaluation of conservative variables and numerical fluxes. Like the twodimensional (2D) case, the nonequilibrium distribution function is approximated by the difference of the equilibrium distribution functions between the cell interface and its surrounding points. It is indicated that the present work is the first time to give explicit formulations for evaluating the conservative variables and numerical fluxes for the 3D viscous flow problems. Like other gaskinetic schemes, the present scheme can be applied to both incompressible and compressible viscous flow problems without any modification. To validate the developed scheme, both incompressible and compressible viscous test cases are solved, including 3D driven cavity flow, incompressible flow past a stationary sphere, flow around ONERA M6 wing and DLRF6 wingbody configuration. Numerical results show that the present solver can provide accurate results for both incompressible and compressible flows.
Boltzmann equation, Maxwellian distribution function and NavierStokes equations
Boltzmann equation and conservative forms of moments for Maxwellian function
With BhatnagarGrossKrook (BGK) collision model [26], the continuous Boltzmann equation in the threedimensional Cartesian coordinate system can be written as
where f is the real particle distribution function and g is the equilibrium particle distribution function. τ is the collision time, which is determined by the dynamic viscosity and the pressure. The righthand side of the equation is the collision term which alters the distribution function from f to g within a collision time τ. Both f and g are functions of space (x, y, z), time (t) and particle velocity (u, v, w, ξ). The internal degree of freedom K in ξ is determined by the space dimension and the ratio of specific heat with the relation K + D = 2/(γ − 1), where D is the abbreviation of the dimension (D = 3 in three dimension) and γ is the specific heat ratio. The equilibrium state g of the Maxwellian distribution is
where ρ is the density of the mean flow; U = (U, V, W) is the macroscopic velocity vector expressed in the x, y and z directions; λ = m/(2kT) = 1/(2RT), where m is the molecular mass, k is the Boltzmann constant, R is the gas constant and T is the temperature. In the equilibrium state, ξ^{2} is the abbreviation of \( {\xi}^2={\xi}_1^2+{\xi}_2^2+\cdots +{\xi}_K^2. \)
With the Maxwellian distribution function in Eq. (2), the following 7 conservative forms of moments will be satisfied, which are used to recover NavierStokes equations by Eq. (1) through ChapmanEnskog expansion analysis:
where u_{α}, u_{β}, u_{χ} and U_{α}, U_{β}, U_{χ} are the particle velocities and the macroscopic flow velocities in the α, β and χ directions. p is the pressure and b = K + D represents the total degree of freedoms of molecules. dΞ = du_{α}du_{β}du_{χ}dξ_{1}dξ_{2}⋯dξ_{K} is the volume element in the particle velocity space. The integral domain for u_{α}, u_{β}, u_{χ}, ξ_{1}, ξ_{2}, …, ξ_{K} is from −∞ to +∞. Eqs. (3)–(5) are applied to recover the fluid density, momentum and energy, respectively. Eqs. (6) and (7) are used to recover convective fluxes of the momentum equation and the energy equation. Eqs. (8) and (9) are to recover diffusive fluxes of the momentum equation and the energy equation.
Macroscopic governing equations discretized by finite volume method
In this work, the 3D NavierStokes equations are solved using the finite volume discretization with the conservative variables defined at cell centers, which can be written as
where W is the vector of conservative variables, Ω and N are the volume and number of interfaces of the control volume, respectively, F_{i} and S_{i} are the flux vector and the area of interface i. It should be noted that the numerical fluxes F_{i} are reconstructed locally at cell interface from the conservative variables W at cell centers. In the gaskinetic scheme, the connection between the distribution function f and the conservative variables is
where \( E=\frac{1}{2}\left({U}^2+{V}^2+{W}^2+ bRT\right) \). φ_{α} is the moment given by
With the compatibility condition,
Eq. (11) is equivalent to
The above equation shows that the nonequilibrium distribution function has no contribution to the calculation of conservative variables.
After evaluation of conservative variables, the flux vector F can also be obtained from the distribution function
It should be noted that Eq. (15) is the flux vector of xdirection in the Cartesian coordinate system. In the practical application such as curved boundary problems, we need to calculate the numerical flux in the normal direction of interface F_{n}
where u^{′} is the particle velocity in the normal direction of interface. Suppose that n_{1} = (n_{1x}, n_{1y}, n_{1z}) is the unit vector in the normal direction of interface and n_{2} = (n_{2x}, n_{2y}, n_{2z}), n_{3} = (n_{3x}, n_{3y}, n_{3z}) are the unit vectors in the tangential directions. Then, the relationship between the particle velocities in the normal and tangential directions (u^{′}, v^{′}, w^{′}) and the particle velocities in the Cartesian coordinate system (u, v, w) are
and similarly
Substituting Eq. (18) into Eq. (12), we have
With the definition of a new moment
and its corresponding flux vector
the real flux vector F_{n} can be obtained by substituting Eq. (19) into Eq. (16) and using Eq. (21)
The above Eq. (22) shows that the calculation of F_{n} is equivalent to the evaluation of \( {\mathbf{F}}_n^{\ast } \) and the key issue is to obtain the gas distribution function f. In the next subsection, a 3D GKFS will be introduced to evaluate the gas distribution function f at cell interface.
Threedimensional gaskinetic flux solver
As the flux vector \( {\mathbf{F}}_n^{\ast } \) is evaluated at the local interface, a local coordinate system is applied in the derivation of distribution function f. It is known that the distribution function f can be separated into two parts, the equilibrium part f^{eq} and the nonequilibrium part f^{neq} with the relationship of
Here, the equilibrium part f^{eq} equals to
With the ChapmanEnskog expansion analysis, the nonequilibrium distribution function can be approximated as
Therefore, the gas distribution function truncated to the NavierStokes level becomes
By applying the Taylor series expansion in time and physical space, the above equation can be simplified to
where f(0, 0, 0, t + δt) is the gas distribution function at local interface; g(0, 0, 0, t + δt) and g(−u^{′}δt, −v^{′}δt, −w^{′}δt, t) are the equilibrium distribution functions at local interface and its surrounding points, respectively. δt is the streaming time step. From Eq. (27), it can be seen that the nonequilibrium distribution f^{neq} is calculated by the difference of equilibrium distribution functions between the interface and its surrounding points, which makes current GKFS be much more straightforward.
In the present work, the conservative variables in Eq. (10) are defined at cell centers. In order to solve Eq. (10) by marching in time, the numerical flux in the normal direction of each cell interface \( {\mathbf{F}}_n^{\ast } \) should be evaluated first. Suppose that the conservative variables at cell centers and their first order derivatives are already known, the conservative variables at the left and the right sides of an interface can be easily given by interpolation. Then, the equilibrium distribution functions at these two sides of interface can be given via Eq. (2). After that, the second order approximation of g(−u^{′}δt, −v^{′}δt, −w^{′}δt, t) at the time level t can be written as
Where g_{l} and g_{r} are the equilibrium distribution functions at the left and the right sides of interface, respectively. Note that in Eq. (28), the equilibrium distribution functions at two sides of interface are not necessarily the same, which means that a possible discontinuity has been taken into account in the form. By substituting Eq. (28) into Eq. (27), we have
where H(u^{′}) is the Heaviside function defined as
Equation (29) shows that the full information of distribution function at the interface can be decided once we have the equilibrium distribution function at cell interface and its surrounding points.
Evaluation of conservative variables W^{∗} at cell interface
It is known that the nonequilibrium distribution has no influence on the computation of conservative variables, and thus Eq. (14) can be adopted to calculate the conservative variables W^{∗} at local interface
According to the compatibility condition (see Eq. (13)), by substituting Eq. (27) and Eq. (28) into Eq. (30), we have
The above equation shows that the conservative variables at cell interface can be obtained by equilibrium distribution function of the surrounding points. By taking the limit δt → 0 [24], the conservative variables at cell interface can be calculated by
The above equation means that the conservative variables at cell interface are simply computed by the reconstructed variables of left and right sides. With parameters defined in the Appendix, the conservative variables W^{∗} at cell interface are given by
where “·_{l}” and “·_{r}” (“·” stands for any variable) denote the variables at the left and the right sides of interface, respectively.
Evaluation of numerical flux \( {\mathbf{F}}_n^{\ast } \) at cell interface
As soon as the conservative variables at local interface W^{∗} are obtained, the equilibrium distribution function g(0, 0, 0, t + δt) can be known by Eq. (2). Then the numerical flux across the cell interface can be calculated via Eq. (29)
Note that g(0, 0, 0, t + δt) is the equilibrium distribution function at the interface and time level t + δt, and g_{l}, g_{r} are the distribution functions at the left and the right sides of interface and the time level t. By taking the limit δt → 0, we have
According to the work of Xu [24], ∂g/∂t can be expanded by
where A_{1}, A_{2}, A_{3}, A_{4} and A_{5} are the derivatives of macroscopic variables with respect to physical space, which will be determined from the compatibility condition, \( \varepsilon =\frac{1}{2}\left({u^{\prime}}^2+{v^{\prime}}^2+{w^{\prime}}^2+{\xi}^2\right) \). Thus, the flux expression in Eq. (38) can be written as
Note that δt → 0 has been applied in Eq. (41). In the above equation, the only undetermined variables are the coefficients A_{1}, A_{2}, A_{3}, A_{4} and A_{5}.
Substituting Eq. (29) into Eq. (11) and adopting the compatibility condition, we have
Using Eqs. (39)–(40), the above equation can be written as
Defining
The explicit formulations of G_{1} to G_{5} are given in the Appendix. After a similar derivation process to the work of Xu [24], the coefficients A_{1}, A_{2}, A_{3}, A_{4} and A_{5} can be determined by
where
Once the above coefficients are obtained, the numerical flux \( {\mathbf{F}}_n^{\ast } \) across the interface can be calculated via Eq. (41). Similar to the conservative variables W^{∗}, the explicit expressions for numerical flux \( {\mathbf{F}}_n^{\ast } \) can also be given as
In Eqs. (51)–(55), the definitions of 〈⋅〉 and all coefficients can be found in the Appendix. They are expressed explicitly as the functions of conservative variables and their derivatives. In addition, since the structured mesh is used in this work, the spatial derivatives in Eqs. (51)–(55) can be approximated directly by the finite difference scheme.
From the above derivations, it can be seen that there are two major differences between the present solver and the gaskinetic BGK scheme [24]. The first difference is that the local asymptotic solution to the Boltzmann equation (see Eq. (26)) is used to calculate the distribution function on the cell interface for the GKFS, while the local integral solution to the Boltzmann equation is utilized for the gaskinetic BGK scheme. Another difference is that the nonequilibrium distribution function is approximated by the difference of equilibrium distribution functions on the cell interface and its surrounding streaming nodes in GKFS (see Eq. (27)), while in the gaskinetic BGK scheme, the nonequilibrium distribution function is included in the initial distribution function around the cell interface. These differences lead to the numerical flux reconstructed by the GKFS being timeindependent (see Eq. (41)), while that of the gaskinetic BGK scheme is timedependent. Since δt → 0 is adopted, the GKFS actually reconstructs the numerical flux at the time level t, as shown in Eq. (41). In the gaskinetic BGK scheme, the numerical flux can be viewed as the integral average in the time interval [t, t + Δt]. From this point of view, the temporal accuracy of the flux in GKFS is O(Δt), while that of the gaskinetic BGK scheme is O(Δt^{2}). But in fact, most of the conventional CFD schemes, such as the Roe scheme, HLL scheme and AUSM, also calculate the numerical flux at the time level t, which indicates that the temporal accuracy of the flux may not be important for solving the Euler/NavierStokes equations for general cases. In terms of simplicity, fewer coefficients are involved in GKFS than the gaskinetic BGK scheme.
Determination of collision time τ
Theoretically, the collision time τ in Eq. (1) is proportional to the physical viscosity
where μ is the dynamic viscosity and p is the pressure. However, the numerical dissipation in Eq. (56) might not be sufficient to get a stable solution in cases such as strong shock wave. Therefore, the effective viscosity should be a combination of both physical and numerical ones. Xu [24] proposed a simple and effective treatment to incorporate the numerical viscosity into the gaskinetic BGK scheme, which is also adopted in the present work:
where Δt is the time step in the solution of NavierStokes equations, p_{l} and p_{r} are the pressure at the left and the right sides of interface, respectively. The additional term of the above equation corresponds to numerical viscosity, which is applied to take the pressure jump with a thickness in the order of cell size into account.
Prandtl number fix
It is well known that the Prandtl number in the gaskinetic BGK scheme corresponds to unity [24]. Several approaches are available to make the Prandtl number be consistent with the real problem. BGKShakhov model [27] is one of these attempts, which adjusts the heat flux in the relaxation term. In the Shakhov model, the Shakhov equilibrium distribution function is given by
where g is the Maxwellian distribution function in Eq. (2), Pr is the Prandtl number, c = u − U is the peculiar velocity and q is the heat flux
It can be seen from Eq. (58) that the Prandtl number can be changed to any realistic value easily. However, considerable work has to be devoted to extend the current GKFS to the above Shakhov model.
Another alternative approach is to make correction for heat flux, which has been presented in [24].
where F_{5} is the energy flux and q is the heat flux defined in Eq. (59). Since all momentums in Eq. (60) have been obtained in the evaluation of energy flux F_{5}, there will not be much additional work in the above Prandtl number fix. Therefore, Eq. (60) is employed to adjust the Prandtl number in the present work.
Computational sequence
In this section, the basic solution procedure of the current 3D GKFS is summarized as follows:

(1)
Firstly, we need to calculate the derivatives of conservative variables and reconstruct the initial conservative variables at two sides of cell interface.

(2)
Compute the unit vector in the normal direction n_{1} and in the tangential directions n_{2} and n_{3} of cell interface. Convert the velocities in the Cartesian coordinate system into the local coordinate system via Eq. (17).

(3)
Calculate the conservative variables at cell interface W^{∗} by using Eqs. (33)–(37).

(4)
Calculate the vector (G_{1}, G_{2}, G_{3}, G_{4}, G_{5})^{T} by using Eqs. (A.19)(A.23) and further compute coefficients A_{1}, A_{2}, A_{3}, A_{4}, A_{5} by Eqs. (45)–(49).

(5)
Calculate the numerical flux \( {\mathbf{F}}_n^{\ast } \) by Eqs. (51)–(55).

(6)
Compute the heat flux q via Eq. (59), and make correction for energy flux by using Eq. (60).

(7)
Convert the numerical flux in the local coordinate system \( {\mathbf{F}}_n^{\ast } \) to the global Cartesian coordinate system F_{n} by using Eq. (22).

(8)
Once the fluxes at all cell interfaces are obtained, solve ordinary differential equation (Eq. (10)) by using time marching method. This step gives the conservative variables at cell centers at new time step.

(9)
Repeat steps (1) to (8) until convergence criterion is satisfied.
Numerical results and discussion
To validate the proposed 3D GKFS for simulation of incompressible and compressible viscous flows, the 3D liddriven cavity flow, incompressible flow past a stationary sphere, flow around ONERA M6 wing and DLRF6 wingbody configuration are considered. For temporal discretization to Eq. (10), fourstages RungeKutta method is applied in cases of 3D liddriven cavity flow and flow past a stationary sphere. In compressible cases, the Lowerupper symmetricGaussSeidel (LUSGS) scheme [28] is adopted to accelerate the convergence and the Venkatakrishnan’s limiter [29] is used to calculate the conservative variables at two sides of interface W^{L} and W^{R} in the reconstruction process. Specifically, W^{L} and W^{R} are computed by
where \( {\mathbf{W}}_c^L \) and \( {\mathbf{W}}_c^R \) are the conservative flow variables at centers of the left and the right cells, respectively; \( \nabla {\mathbf{W}}_c^L \) and \( \nabla {\mathbf{W}}_c^R \) are their corresponding firstorder derivatives. \( {\mathbf{x}}_c^L \), \( {\mathbf{x}}_c^R \) and x_{b} are the coordinates of the left cell center, the right cell center and the midpoint of cell interface, respectively. \( {\Psi}_c^L \) and \( {\Psi}_c^R \) are the limiter functions utilized in the left and the right cells, respectively. In addition, all the simulations were done on a PC with 3.10GHz CPU.
Before applying the GKFS to various fluid flow problems, its accuracy is first validated by the advection of density perturbation for threedimensional flows [30]. The initial condition of this problem is set as
The exact solutions under periodic boundary condition are
Since this test case belongs to the inviscid flow, the collision time τ takes
where ε = 0.01 is used. Numerical tests are conducted on the computational domain of [0, 2] × [0, 2] × [0, 2]. The uniform meshes with Δx = Δy = Δz = 2/N and N = 20, 40, 60, 80 are used. The L^{1} error of the density field at t = 2 is extracted and shown in Fig. 1. It can be seen that the GKFS is about the second order of accuracy in space.
Case 1: 3D liddriven cavity flow
The 3D liddriven cavity flows in a cube are simulated to test the capability of the proposed explicit GKFS for simulating 3D incompressible viscous flows. The nonuniform mesh of 81 × 81 × 81 is used for the cases of Re = 100 and 400. The mesh point in the xdirection is generated by
Where κ_{i} = (i − 1)/((i max − 1)/2), i and imax are the mesh point index and total number of mesh points in the x direction; η is the parameter to control the mesh stretching and is selected as 1.1 in this study. Similarly, the mesh point in the y and zdirections is generated in the same way.
In the current simulation, the fluid density is taken as ρ = 1.0 and the lid velocity is chosen as U_{∞} = 0.1. Initially, the density inside the cavity is constant and the flow is static. The lid on the top boundary moves along the xdirection. The noslip wall condition is imposed at all boundaries. To quantitatively examine the performance of 3D GKFS, the velocity profiles of xdirection component u along the vertical centerline and ydirection component v along the horizontal centerline for Re = 100 and 400 are plotted in Fig. 2. For comparison, the results of Shu et al. [31] and Wu and Shu [32] are also included in the figure. It can be found that all the velocity profiles by current 3D GKFS agree very well with those of Shu et al. [31] and Wu and Shu [32], which demonstrates the capability of present solver for the simulation of 3D incompressible flows on nonuniform grids. To further show the flow patterns of 3D liddriven cavity flow, the streamlines for Re = 100 and 400 at three orthogonal midplanes located at x = 0.5, y = 0.5 and z = 0.5 are displayed in Fig. 3. The flow patterns along the midplane of z = 0.5 in Fig. 3 demonstrate that the primary vortices gradually shift toward the center position and the second vortices gradually move to the lower bottom wall when the Reynolds number is increased. In this process, the strength of these vortices is also enhanced, which can also be proven by the flow patterns along other two midplanes. All these observations match well with those in Shu et al. [31].
Case 2: incompressible flow past a stationary sphere
In this section, the 3D GKFS is applied to a benchmark case of incompressible flow past a stationary sphere. In this case, the flow is characterized by the Reynolds number defined by Re = ρU_{∞}D/μ, where ρ and μ are the fluid density and dynamic viscosity, respectively. U_{∞} is the free stream velocity and D is the sphere diameter. To simulate this test case with a simple Cartesian mesh, the implicit boundary conditionenforced immersed boundary method [33, 34] is coupled with the present 3D GKFS. The computational domain is selected as a rectangular box of 30D × 20D × 20D in the x, y and z directions. The sphere is initially placed at (10D, 10D, 10D), which is discretized by triangular elements with 1195 vertices. As shown in Fig. 4, a nonuniform Cartesian mesh with mesh size of 137 × 122 × 122 is used, in which a uniform mesh spacing of 0.02D is applied around the sphere. The noslip condition on the curved boundary is imposed by correcting the velocity on the Cartesian mesh through the immersed boundary method [33, 34]. Here, laminar flows at low Reynolds numbers of 50, 100, 150, 200 and 250 are considered.
At first, the drag coefficients at Re = 100, 200 and 250 are computed and compared quantitatively in Table 1 to verify the accuracy of the present solver. The numerical results of Johnson and Patel [35], Wu and Shu [32], Kim et al. [36] and Wang et al. [37] are also included in the table for comparison. It can be clearly observed that the present results match well with those in the literature.
Then, for the steady axisymmetric flow, the streamlines of flow past a sphere at Re ≤ 200 are depicted in Fig. 5. Since the flow is axisymmetric, only the streamlines on the x y plane of symmetry are given. From the figure, a recirculation region appears behind the sphere and its length L_{s} increases with Reynolds number. Quantitative comparison between the present results of L_{s} and those of Johnson and Patel [35] and Gilmanov et al. [38] is made in Fig. 6. Good agreement can be found in the figure. When the Reynolds number is increased to 250, the phenomenon of steady nonaxisymmetric pattern shows up, which can be seen in Fig. 7. In the figure, the streamlines on the x z plane remain symmetric. However, there are two asymmetric vortices on the x y plane, which implies that the symmetry is lost in this plane. These results are in good agreement with previous investigations [35, 38].
Case 3: flow around ONERA M6 wing
The ONERA M6 test case is chosen to validate the present solver for the simulation of compressible viscous flows with complex geometry. For numerical simulation, the freestream Mach number is taken as M_{∞} = 0.8395, the meanchord based Reynolds number is chosen as Re = 11.72 × 10^{6} and the angle of attack is α = 3.06^{∘}. The computational mesh in the NASA website [39] is adopted in this work, which has 4 blocks and 316,932 grid points. The mesh spacing of the first mesh point adjacent to the wing surface is 4.5 × 10^{−5}. To take turbulent effect into consideration, the SpalartAllmaras turbulent model [40] is applied. Figure 8 shows the pressure contours at the wing surface obtained from the present solver, in which the “λ” shape shock wave on the upper surface is clearly presented. The above phenomenon matches well with the result from sphere functionbased gaskinetic scheme [41]. To further validate the present results, the pressure coefficient distributions at selected spanwise locations obtained from the present solver are displayed in Fig. 9. The numerical results of WIND scheme [39] and the experimental results [42] are also included for comparison. As can be seen from the figure, the present results are close to those of WIND scheme [39] and compare well with the experimental data [42]. What is more, the pressure coefficient distributions at 65% and 80% spans show that the present results are much closer to the experimental results [42] as compared with the results from WIND scheme [39]. It demonstrates that the present solver captures the shock wave more precisely and controls the numerical dissipation well.
To further investigate the performance of GKFS for simulation of high speed flows, in this test, we change the Mach number to M_{∞} = 5 while keep other parameters the same as the above case. Figure 10 shows the pressure contours and the pressure coefficient distribution at 65% span. It can be seen that the GKFS captures strong shock wave without any oscillation and the pressure coefficient distribution agrees well with the AUSM scheme [43].
Case 4: DLRF6 wingbody configuration
The DLRF6 wingbody configuration is a generic transport aircraft model from the 3rd AIAA CFD drag prediction workshop (DPW III) [44]. At first, numerical simulations are conducted at a freestream Mach number of M_{∞} = 0.75, a meanchord based Reynolds number of Re = 3 × 10^{6} and an angle of attack α = 0.49^{∘}. The geometry and computational mesh from the NASA website [45] are utilized in the current work. Owing to the limitation of the computer’s memory, only the coarse mesh with 26 blocks and 2,298,880 cells is used. Figure 11 is the pressure contour of DLRF6 wingbody obtained by present GKFS. The separation bubble at the intersection of wing and body is clearly recognized in Fig. 12, which is in line with the observations of Vassberg et al. [46]. To make a quantitative comparison, the pressure coefficient distributions at selected spanwise locations obtained by present 3D GKFS are compared with the experimental results [47] and numerical results of Vassberg et al. [46] and Yang et al. [48] in Fig. 13. It can be observed that the current results are close to those of Vassberg et al. [46] and Yang et al. [48] and all of them basically agree well with the experimental measurement [47].
To further verify the force coefficients of current solver for the DLRF6 wingbody, another test case is simulated with the free stream condition of Mach number M_{∞} = 0.75, Reynolds number Re = 5 × 10^{6} and angle of attach α = 0^{∘}. Table 2 shows the present results of force coefficients, including lift coefficient C_{l}, pressure drag coefficient C_{d, p}, friction drag coefficient C_{d, f}, total drag coefficient C_{d} and moment coefficient C_{M}. The results of present solver are close to the results of LBFS [48] and can essentially match well with the reference data of Vassberg et al. [46].
Conclusions
This paper presents a threedimensional GKFS for simulation of incompressible and compressible viscous flows. The present work is the extension of our previous work [1], where a new gaskinetic scheme is presented to simulate twodimensional viscous flows. In this work, the nonequilibrium distribution function is evaluated by the difference of equilibrium distribution functions at cell interface and its surrounding points. As a result, the distribution function at the interface can be simply derived and the formulations of the conservative variables and fluxes at cell interface can be explicitly given. Since the solution of 3D continuous Boltzmann equation is reconstructed locally at cell interface, the present scheme can be viewed as a truly 3D flux solver for viscous flows. To consider general 3D cases, a local coordinate transformation is made to transform the velocities in the global Cartesian coordinate system to the local normal and tangential directions at each cell interface. In this way, all the interfaces can be treated using the same way. Several numerical experiments are conducted to validate the proposed scheme, including 3D liddriven cavity flow, incompressible flow past a stationary sphere, compressible flow around ONERA M6 wing and DLRF6 wingbody configuration. Numerical results showed that the proposed flux solver can provide accurate numerical results for threedimensional incompressible and compressible viscous flows.
Availability of data and materials
All data generated or analyzed during this study are included in this published article.
Abbreviations
 2D:

Twodimensional
 3D:

Threedimensional
 KFVS:

Kinetic flux vector scheme
 BGK:

BhatnagarGrossKrook
 FDS:

Flux difference splitting
 CFD:

Computational fluid dynamics
 GKFS:

Gaskinetic flux solver
 LUSGS:

Lowerupper symmetricGaussSeidel
References
Sun Y, Shu C, Teo CJ et al (2015) Explicit formulations of gaskinetic flux solver for simulation of incompressible and compressible viscous flows. J Comput Phys 300:492–519
Xu K (1998) Gaskinetic schemes for unsteady compressible flow simulations. VKI for Fluid Dynamics Lecture Series
Su M, Xu K, Ghidaoui MS (1999) Lowspeed flow simulation by the gaskinetic scheme. J Comput Phys 150(1):17–39
Xu K, Mao M, Tang L (2005) A multidimensional gaskinetic BGK scheme for hypersonic viscous flow. J Comput Phys 203(2):405–421
Tian CT, Xu K, Chan KL et al (2007) A threedimensional multidimensional gaskinetic scheme for the NavierStokes equations under gravitational fields. J Comput Phys 226(2):2003–2027
Jiang J, Qian Y (2012) Implicit gaskinetic BGK scheme with multigrid for 3D stationary transonic highReynolds number flows. Comput Fluids 66:21–28
Yang LM, Shu C, Wu J (2014) A simple distribution functionbased gaskinetic scheme for simulation of viscous incompressible and compressible flows. J Comput Phys 274:611–632
Li W, Kaneda M, Suga K (2014) An implicit gas kinetic BGK scheme for high temperature equilibrium gas flows on unstructured meshes. Comput Fluids 93:100–106
Li ZH, Zhang HX (2004) Study on gas kinetic unified algorithm for flows from rarefied transition to continuum. J Comput Phys 193(2):708–738
Xu K, Huang JC (2010) A unified gaskinetic scheme for continuum and rarefied flows. J Comput Phys 229(20):7747–7764
Guo Z, Xu K, Wang R (2013) Discrete unified gas kinetic scheme for all Knudsen number flows: lowspeed isothermal case. Phys Rev E 88(3):033305
Liu S, Yu P, Xu K et al (2014) Unified gaskinetic scheme for diatomic molecular simulations in all flow regimes. J Comput Phys 259:96–113
Roe PL (1981) Approximate Riemann solvers, parameter vectors, and difference schemes. J Comput Phys 43(2):357–372
Engquist B, Osher S (1981) Onesided difference approximations for nonlinear conservation laws. Math Comput 36(154):321–351
Van Leer B (1997) Fluxvector splitting for the Euler equation. In: Hussaini MY, van Leer B, Van Rosendale J (eds) Upwind and highresolution schemes. Springer, Heidelberg
Osher S, Chakravarthy S (1983) Upwind schemes and boundary conditions with applications to Euler equations in general geometries. J Comput Phys 50(3):447–481
Pullin DI (1980) Direct simulation methods for compressible inviscid idealgas flow. J Comput Phys 34(2):231–244
Deshpande SM (1986) A secondorder accurate kinetictheorybased method for inviscid compressible flows. NASA STI/Recon Technical Report N 87
Perthame B (1992) Secondorder Boltzmann schemes for compressible Euler equations in one and two space dimensions. SIAM J Numer Anal 29(1):1–19
Mandal JC, Deshpande SM (1994) Kinetic flux vector splitting for Euler equations. Comput Fluids 23(2):447–478
Chou SY, Baganoff D (1997) Kinetic fluxvector splitting for the NavierStokes equations. J Comput Phys 130(2):217–230
Prendergast KH, Xu K (1993) Numerical hydrodynamics from gaskinetic theory. J Comput Phys 109(1):53–66
Chae D, Kim C, Rho OH (2000) Development of an improved gaskinetic BGK scheme for inviscid and viscous flows. J Comput Phys 158(1):1–27
Xu K (2001) A gaskinetic BGK scheme for the NavierStokes equations and its connection with artificial dissipation and Godunov method. J Comput Phys 171(1):289–335
Xu K, Sun Q, Yu P (2010) Valid physical processes from numerical discontinuities in computational fluid dynamics. Int J Hypersonics 1(3):157–172
Bhatnagar PL, Gross EP, Krook M (1954) A model for collision processes in gases. I Small amplitude processes in charged and neutral onecomponent systems. Phys Rev 94(3):511–525
Shakhov EM (1968) Generalization of the Krook kinetic relaxation equation. Fluid Dyn 3(5):95–96
Yoon S, Jameson A (1988) Lowerupper symmetricGaussSeidel method for the Euler and NavierStokes equations. AIAA J 26(9):1025–1026
Venkatakrishnan V (1995) Convergence to steady state solutions of the Euler equations on unstructured grids with limiters. J Comput Phys 118(1):120–130
Pan L, Xu K (2020) Highorder gaskinetic scheme with threedimensional WENO reconstruction for the Euler and NavierStokes solutions. Comput Fluids 198:104401
Shu C, Niu XD, Chew YT (2003) Taylor series expansion and least squaresbased lattice Boltzmann method: threedimensional formulation and its applications. Int J Mod Phys C 14(07):925–944
Wu J, Shu C (2010) An improved immersed boundarylattice Boltzmann method for simulating threedimensional incompressible flows. J Comput Phys 229(13):5022–5042
Wu J, Shu C (2009) Implicit velocity correctionbased immersed boundarylattice Boltzmann method and its applications. J Comput Phys 228(6):1963–1979
Wang Y, Shu C, Teo CJ et al (2015) An immersed boundarylattice Boltzmann flux solver and its applications to fluidstructure interaction problems. J Fluids Struct 54:440–465
Johnson TA, Patel VC (1999) Flow past a sphere up to a Reynolds number of 300. J Fluid Mech 378:19–70
Kim J, Kim D, Choi H (2001) An immersedboundary finitevolume method for simulations of flow in complex geometries. J Comput Phys 171(1):132–150
Wang XY, Yeo KS, Chew CS et al (2008) A SVDGFD scheme for computing 3D incompressible viscous fluid flows. Comput Fluids 37(6):733–746
Gilmanov A, Sotiropoulos F, Balaras E (2003) A general reconstruction algorithm for simulating flows with complex 3D immersed boundaries on Cartesian grids. J Comput Phys 191(2):660–669
Slater JW (2002) ONERA M6 Wing. http://www.grc.nasa.gov/WWW/wind/valid/m6wing/m6wing01/m6wing01.html. Accessed 30 Aug 2002
Spalart P, Allmaras S (1992) A oneequation turbulence model for aerodynamic flows. AIAA paper 920439
Yang LM, Shu C, Wu J (2015) A threedimensional explicit sphere functionbased gaskinetic flux solver for simulation of inviscid compressible flows. J Comput Phys 295:322–339
Schmitt V, Charpin F (1979) Pressure distributions on the ONERAM6wing at transonic Mach numbers, experimental data base for computer program assessment. Report of the Fluid Dynamics Panel Working Group 04, AGARD AR 138, May 1979
Liou MS (2006) A sequel to AUSM, part II: AUSM+up for all speeds. J Comput Phys 214:137–170
Frink NT (2006) 3rd AIAA CFD Drag Prediction Workshop. https://aiaadpw.larc.nasa.gov/Workshop3/workshop3.html. Accessed 29 Nov 2006
Morrison J (2006) https://dpw.larc.nasa.gov/DPW3/multiblock_Boeing_CGNS/F6wb_struc_boeing. Accessed 18 Jan 2006
Vassberg J, Tinoco E, Mani M et al (2007) Summary of the third AIAA CFD drag prediction workshop. Paper presented at the 45th AIAA aerospace sciences meeting and exhibit, 1 Jan 2007
Rumsey CL, Rivers SM, Morrison JH (2005) Study of CFD variation on transport configurations from the second dragprediction workshop. Comput Fluids 34(7):785–816
Yang LM, Shu C, Wu J (2014) A hybrid lattice Boltzmann flux solver for simulation of 3D compressible viscous flows. Paper presented at the eighth international conference on computational fluid dynamics, Chengdu, China, 2429 July 2014
Acknowledgments
This work is supported by National Natural Science Foundation of China (Grant Nos. 11772157 and 11832012).
Funding
National Natural Science Foundation of China (Grant Nos. 11772157 and 11832012).
Author information
Authors and Affiliations
Contributions
The contribution of the authors to this work is equivalent. All authors read and approved the final manuscript.
Corresponding author
Ethics declarations
Competing interests
The authors declare that they have no competing interests.
Additional information
Publisher’s Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Appendix
Appendix
Moments of Maxwellian Distribution Function
In the paper, some notations are taken to simplify the formulations. In this appendix, the notations for the moments of Maxwellian distribution function are introduced. At first, the Maxwellian distribution function for 3D flows is given as (Eq. (2))
Following the idea of [2], the notation for the moments of g is defined as
Then the general moment formualtion becomes
It should be noted that in Section 3, the conservative variables and numerical fluxes are derived at local interface and the transformation of velocities is made at each cell interface. Therefore, the moments of normal and tangential velocities (u^{′}, v^{′}, w^{′}) are presented to keep pace with the formulations in the paper. As the integration of three components of the particle velocity (u^{′}, v^{′}, w^{′}) are similar to each other, only the moments of u^{′} are presented here. When the integral of velocity is from −∞ to +∞, the moments of u^{′n} and ξ^{n} are
and
When the moments for u^{′n} are calculated in the half space, the exponential function and the complementary error function appear in the formulation. Take notation of the integral from 0 to +∞ as 〈⋅〉_{>0} and integral from −∞ to 0 as 〈⋅〉_{<0}, the moments become
and
In order to compute the coefficients A_{1} to A_{5} via Eqs. (45)–(49), the values of G_{1} to G_{5} in Eq. (44) should be calculated in advance. The explicit formulations of G_{1} to G_{5} can be given as
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Sun, Y., Yang, L.M., Shu, C. et al. A threedimensional gaskinetic flux solver for simulation of viscous flows with explicit formulations of conservative variables and numerical flux. Adv. Aerodyn. 2, 13 (2020). https://doi.org/10.1186/s42774020000396
Received:
Accepted:
Published:
DOI: https://doi.org/10.1186/s42774020000396
Keywords
 3D flux solver
 Gaskinetic scheme
 Viscous flow
 NavierStokes equations