Unified Gas-kinetic Scheme with Multigrid Convergence for Rarefied Flow Study
Yajun Zhu, Chengwen Zhong, Kun Xu

TL;DR
This paper introduces a multigrid accelerated implicit unified gas kinetic scheme (MIUGKS) that significantly improves computational efficiency for simulating rarefied and high-speed flows, outperforming traditional methods like DSMC.
Contribution
The paper presents the first integration of geometric multigrid techniques into the implicit UGKS, greatly enhancing convergence speed for various flow regimes.
Findings
MIUGKS achieves 5 to 9 times efficiency increase over previous implicit UGKS.
MIUGKS is several orders of magnitude faster than DSMC for microflows.
Even at hypersonic speeds, MIUGKS is over 100 times faster than DSMC.
Abstract
The unified gas kinetic scheme (UGKS) is a direct modeling method based on the gas dynamical model on the mesh size and time step scales. With the implementation of particle transport and collision in a time-dependent flux function, the UGKS can recover multiple flow physics from the kinetic particle transport to the hydrodynamic wave propagation. In comparison with direct simulation Monte Carlo (DSMC), the equations-based UGKS can use the implicit techniques in the updates of macroscopic conservative variables and microscopic distribution function. The implicit UGKS significantly increases the convergence speed for steady flow computations, especially in the highly rarefied and near continuum regime. In order to further improve the computational efficiency, for the first time a geometric multigrid technique is introduced into the implicit UGKS, where the prediction step for the…
Click any figure to enlarge with its caption.
Figure 1
Figure 2
Figure 3
Figure 4
Figure 5
Figure 6
Figure 7
Figure 8
Figure 9
Figure 10
Figure 11
Figure 12
Figure 13
Figure 14
Figure 15
Figure 16
Figure 17
Figure 18
Figure 19
Figure 20
Figure 21
Figure 22
Figure 23
Figure 24
Figure 25
Figure 26
Figure 27
Figure 28
Figure 29
Figure 30
Figure 31
Figure 32
Figure 33
Figure 34
Figure 35
Figure 36
Figure 37
Figure 38
Figure 39| Re | Physical space | 333The numbers of discrete velocity points in phase space. | |||
|---|---|---|---|---|---|
| 111The numbers of discrete cells on edges AF, AB and CD are equal, i.e., . | 222 denotes the minimum height of cells near the solid boundary. | ||||
| 0.2 | 32 | 32 | 3072 | 0.02 | |
| 0.5, 1 | 48 | 48 | 6912 | 0.01 | |
| 2, 5 | 48 | 48 | 6912 | 0.005 | |
| 10, 20, 50 | 64 | 48 | 7680 | 0.002 | |
| Re | IUGKS | MIUGKS | Speedup | ||
|---|---|---|---|---|---|
| =3 | |||||
| 0.2 | 118 | 18 | 14 | 14 | 8.4 |
| 0.5 | 245 | 30 | 20 | 18 | 13.6 |
| 1 | 334 | 36 | 24 | 23 | 14.5 |
| 2 | 504 | 52 | 37 | 34 | 14.8 |
| 5 | 841 | 79 | 61 | 55 | 15.3 |
| 10 | 1285 | 127 | 100 | 92 | 14.0 |
| 20 | 1845 | 176 | 142 | 130 | 14.2 |
| 50 | 2854 | 260 | 211 | 195 | 14.6 |
| Re | IUGKS | MIUGKS | Speedup | ||
|---|---|---|---|---|---|
| =3 | |||||
| 0.2 | 13.5 | 3.3 | 2.5 | 2.5 | 5.3 |
| 0.5 | 51.5 | 9.8 | 6.6 | 6.0 | 8.6 |
| 1 | 70.2 | 11.8 | 8.0 | 7.6 | 9.2 |
| 2 | 83.0 | 13.5 | 9.7 | 8.9 | 9.3 |
| 5 | 138.6 | 20.5 | 16.0 | 14.4 | 9.6 |
| 10 | 179.2 | 27.9 | 22.1 | 20.4 | 8.8 |
| 20 | 257.2 | 38.7 | 31.5 | 28.9 | 8.9 |
| 50 | 398.8 | 57.1 | 46.7 | 43.2 | 9.2 |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Unified Gas-kinetic Scheme with Multigrid Convergence for Rarefied Flow Study
Yajun Zhu
National Key Laboratory of Science and Technology on Aerodynamic Design and Research, Northwestern Polytechnical University, Xi’an, Shaanxi 710072, China
Chengwen Zhong
National Key Laboratory of Science and Technology on Aerodynamic Design and Research, Northwestern Polytechnical University, Xi’an, Shaanxi 710072, China
Kun Xu
Department of Mathematics, Hong Kong University of Science and Technology, Hong Kong, China
Abstract
The unified gas kinetic scheme (UGKS) is a direct modeling method based on the gas dynamical model on the mesh size and time step scales. With the implementation of particle transport and collision in a time-dependent flux function, the UGKS can recover multiple flow physics from the kinetic particle transport to the hydrodynamic wave propagation. In comparison with direct simulation Monte Carlo (DSMC), the equations-based UGKS can use the implicit techniques in the updates of macroscopic conservative variables and microscopic distribution function. The implicit UGKS significantly increases the convergence speed for steady flow computations, especially in the highly rarefied and near continuum regime. In order to further improve the computational efficiency, for the first time a geometric multigrid technique is introduced into the implicit UGKS, where the prediction step for the equilibrium state and the evolution step for the distribution function are both treated with multigrid acceleration. More specifically, a full approximate nonlinear system is employed in the prediction step for fast evaluation of the equilibrium state, and a correction linear equation is used in the evolution step for the update of the gas distribution function. As a result, convergent speed has been greatly improved in all flow regimes from rarefied to the continuum ones. The multigrid implicit UGKS (MIUGKS) is used in the non-equilibrium flow study, which includes microflow, such as lid-driven cavity flow and the flow passing through a finite-length flat plate, and high speed one, such as supersonic flow over a square cylinder. The MIUGKS shows to times efficiency increase over the previous implicit scheme. For the low speed microflow, the efficiency of MIUGKS is several orders of magnitude higher than the DSMC. Even for the hypersonic flow at Mach number and Knudsen number , the MIUGKS is still more than times faster than the DSMC method for a convergent steady state solution.
multigrid method , unified gas kinetic scheme , rarefied flows , multiscale physics
I Introduction
With discretized particle velocity space, the unified gas kinetic scheme (UGKS) was an extension from the gas kinetic scheme (GKS) for the Navier-Stokes (NS) solution to the flow dynamics in the entire Knudsen regimes Xu (2001); Xu and Huang (2010). As a NS solver, the GKS updates macroscopic conservative flow variables only. But, the UGKS evolves both macroscopic flow variables and the microscopic gas distribution function. In both schemes, a time-dependent gas distribution function from kinetic model equation is used for the flux evaluation, and this time evolving solution covers the gas dynamics from the initial non-equilibrium state to the final hydrodynamic equilibrium one. The real solution used for the updates of macroscopic flow variables and the gas distribution function depends on the relative values of particle collision time and the local numerical time step . The main difference between GKS and UGKS is the set-up of the initial distribution function around a cell interface at the beginning of each time step. For GKS, it is reconstructed from the updated macroscopic flow variables through the Chapman-Enskog expansion, and for UGKS it directly uses the updated gas distribution function. The UGKS can describe highly non-equilibrium flow physics due to the update of the discretized distribution function. With a variation of the ratio between the time step and local particle mean collision time, the UGKS is capable to present the Boltzmann solution in the rarefied flow regime and the NS solution in the continuum flow domain. In the transition regime, a reliable solution can be obtained by UGKS as well Xu and Liu (2017). In addition, different from the discrete velocity method (DVM) Mieussens (2000a) and the direct simulation of Monte Carlo (DSMC) method Bird (1994), the cell size and time step in UGKS are not restricted by the particle mean free path and collision time due to the implicit treatment of particle collision term inside each cell with the help of updated macroscopic flow variables. The distinguishable multi-scale feature of the UGKS makes it suitable in the gas dynamics study with multiple flow regimes in a single computation, such as the flow passing through a nozzle Chen et al. (2012) from the inside highly compressed continuum flow () to the outside highly rarefied one ().
In the past years, the UGKS has been validated extensively and it gives accurate solutions in all flow regimes Xu (2015). The method can be easily extended to more complex gases, such as diatomic molecule gas Liu et al. (2014) and multi-species flow Wang and Xu (2014). The methodology of direct modeling in UGKS can be used to construct numerical methods in other transport processes, such as radiation and phonon transfer Sun et al. (2015); Guo and Xu and plasma physics Liu and Xu (2017). The UGKS provides a promising tool and shows great potentials in the engineering applications, e.g., to the micro-electro-mechanical system and spacecraft designs.
The barriers in front of UGKS for preventing its wide applications in comparison with the DSMC method are the high memory requirements and computational cost, especially for the hypersonic flow and high temperature variation. However, since the UGKS is still an equation-based method, it has advantages in comparison with particle methods in the reduction of computational cost. Many acceleration techniques in traditional computational fluid dynamics (CFD) can be directly adopted in UGKS. One way to reduce the computational cost in UGKS is to reduce the discretization points, such as adopting a moving and adaptive mesh in the physical and velocity spaces Chen et al. (2012). With adaptive discretization techniques, the computational cost could be controlled to a tolerable level even for highly non-equilibrium flow problems. Another way is to adopt acceleration techniques. For explicit scheme, the numerical stability imposes the Courant-Friedrichs-Lewy (CFL) condition on the time step. But with implicit treatments, this constraint can be released and the computational efficiency can be greatly enhanced. The implicit GKS has been constructed for a faster convergence to the Navier-Stokes solutions Li and Fu (2006); Xu, Mao, and Tang (2005); Jiang and Qian (2012); Li, Kaneda, and Suga (2014). For rarefied flows, several implicit schemes have been proposed based on the iterative algorithms in updating the discretized gas distribution function Yang and Huang (1995); Mao et al. (2015). As pointed out in Mieussens (2000b, a), the direct explicit treatment of the equilibrium state in the collision term of the kinetic equation may slow down the convergence of the implicit schemes, especially near continuum flow regime. Hence in a previous study Zhu, Zhong, and Xu (2016), an implicit UGKS with a prediction step for the equilibrium state was developed to increase acceleration convergence. By first updating the conservative variables implicitly, the collision term in the kinetic equation can be treated in an implicit way, which drives the gas distribution function to a steady state solution efficiently. The implicit UGKS has been validated to be a robust and efficient method in all flow regimes. In order to further speed up the convergence of UGKS for a steady flow solution, the multigrid method, which is one of the most outstanding acceleration techniques in CFD, will be implemented in the implicit UGKS in this paper.
The study of multigrid technique may originate from 1960s Fedorenko (1962, 1964). Since Brandt’s works Brandt (1977) in 1970s, the multigrid method got a fast development in practical computations. Now the multigrid method is commonly used in CFD community Blazek (2001) for solving the Euler and Navier-Stokes equations Jameson (1983); Yoon and Jameson . It has been applied to the GKS Xu, Martinelli, and Jameson (1995); Jiang and Qian (2012) for acceleration to the steady state solutions for the continuum flow computations. There are many monographs Brandt and Livne (2011); Trottenberg, Oosterlee, and Schuller (2000); Stüben and Trottenberg (1982); Wesseling (1992) about multigrid techniques and their numerical implementations. The basic idea behind all multigrid strategies is to accelerate the solution at fine grid by computing corrections on a coarser grid Mavriplis (1995) to eliminate low-frequency errors efficiently. In general, an iterative algorithm can reduce the high-frequency errors faster than the low-frequency ones. The multiple grid method is to make the transition between the low and high frequency modes through a change of cell size, and to eliminate the low frequency error in an even coarse mesh by increasing its spatial frequency.
In this paper, we develop a multigrid method for the implicit UGKS, which further improves its convergence efficiency in rarefied flow computations. The implicit UGKS Zhu, Zhong, and Xu (2016) has the prediction stage for evaluating the implicit part of equilibrium state in the collision term, and the evolution stage for updating the gas distribution function. Both stages of the implicit UGKS are treated with multigrid techniques to ensure a fast convergence in all flow regimes. It turns out that the macroscopic equations become a nonlinear system, while the implicit evolution equations for the distribution function at discrete particle velocities are still linear ones. As a result, the full approximation storage scheme (FAS) Brandt and Livne (2011) is used in the prediction step for the conservative flow variables and the correction scheme (CS) Brandt and Livne (2011); Trottenberg, Oosterlee, and Schuller (2000) for solving linear equations is utilized in the evolution of the distribution function. For the first time, a multigrid method is used in the UGKS for the rarefied flow computation. After presenting the scheme, many rarefied flow cases from low to high speed ones covering a wide range of flow regimes will be studied, such as lid-driven cavity flow, flow passing through a finite-length flat plate, and supersonic flow over a square cylinder. In all cases presented in the current paper, the implicit UGKS with multigrid acceleration is much more efficient than the DSMC method with orders of magnitude differences.
The paper is organized as follows. In section II, the multigrid implicit UGKS (MIUGKS) is presented. Section III is about the analysis and remarks on the current multigrid method. Section IV presents the rarefied flow studies using the MIUGKS. The last section is the conclusion.
II Multigrid implicit UGKS
In this section, the implicit UGKS will be introduced first Zhu, Zhong, and Xu (2016). The implicit UGKS is a pseudo-time-marching scheme for steady state solution. In fact, the implicit scheme can be interpreted as a numerical smoothing method, which can be naturally incorporated into a multigrid framework. The basic components in the multigrid method will be described via the detailed formulation of a two-grid cycle. The extension to multiple grids is straight forward through a recursive way on the basis of the two-grid cycle.
II.1 Implicit UGKS
For steady flows, the governing equation of macroscopic variables averaged in a finite volume gives
[TABLE]
where is the set of neighbors of cell , and is one of the neighboring cell, and denotes the interface between cells and . Here is the area of the interface and is the volume of the cell . are the fluxes of conservative variables passing through the cell interface . Eq. (1) describes the balance of interface fluxes for cell at steady state.
For the gas distribution function at the discretized velocity , the governing equation can be written as
[TABLE]
where is the normal component of along the interface . The interface distribution function is a local physical time averaged quantity, which identifies different physics in different regimes. The equilibrium state can be the Maxwellian distribution, or a Shakhov-type model with the justification of the Prandtl number. The multiple scale nature of UGKS is fully determined by the modeling of the flux function at a cell interface , which will be presented later.
Since Eq. (1) and Eq. (2) depict the final steady state solution, which denotes time for explicit scheme or iteration step for iterative methods, they could be directly regarded as the implicit governing equations of the accurate final solution. In general, the solution is basically impossible to be obtained in one step. Numerical computation will start from an approximate solution (or initial state solution) and then get more accurate solutions step by step using explicit time-marching schemes or implicit iterative methods.
For the implicit UGKS, given an approximate solution and at step , the errors for macroscopic and microscopic variables can be defined as
[TABLE]
and
[TABLE]
The residuals become
[TABLE]
and
[TABLE]
As a result, the residual equations (or defect equations) for implicit iterations go to
[TABLE]
and
[TABLE]
If and were precisely solved from Eq. (7) and Eq. (8), we could get the exact solution and from Eq. (3) and Eq. (4). However, it is much too difficult to solve the residual equations (7) and (8) with the full UGKS terms of and . Moreover, it requires the unknown equilibrium state in evaluation of microscopic residual . Therefore, we divide the solving process into two steps, i.e., prediction for equilibrium state and evolution of gas distribution function. In the prediction step, with the simplified implicit fluxes on the left hand side of Eq. (7) we can approximately solve the Eq. (7) to get a correction of conservative variables as an approximation of . Then the equilibrium state in the evaluation of can be approximated by obtained from . Consequently, in the evolution step we can obtain a correction of distribution function as an approximate once we solve Eq. (8) using simplified fluxes . Then the distribution function can be updated by and the equilibrium state and the conservative variables can be renewed by the compatibility condition from . Following these procedures iteratively, the convergent solution can be obtained step by step from the corrections, accompanied with error smoothing and reduction. Details in these two steps will be introduced in the following.
II.1.1 Prediction step for equilibrium state
In order to evaluate the residuals in Eq. (6), the equilibrium state should be given first. Here we give a predicted one by solving the implicit governing equations (7) of macroscopic variables.
For evaluation of the residual in Eq. (5), we use
[TABLE]
where is a time-dependent distribution function constructed by the analytic solution of the kinetic model equation along a characteristic line, and is the vector for its moments of mass, momentum and energy. is the physical time step determined by the CFL condition with a Courant number less than , which recovers the local flow physics. The residuals are completely evaluated by explicit UGKS fluxes, see details in papers Xu and Huang (2010); Huang, Xu, and Yu (2012); Xu (2015). In order to solve Eq. (7),the fluxes on the left hand side will be simplified by Euler equations-based flux splitting method,
[TABLE]
where is the Euler flux. satisfies
[TABLE]
where represents the spectral radius of the Euler flux Jacobian, which can be evaluated by the macroscopic velocity and speed of sound at the interface . Here is the normal vector of the interface along the direction from cell to cell . Generally, a stable factor Li and Fu (2006); Chen and Wang (2000) related to the kinematic viscosity coefficient can be introduced into the calculation of ,
[TABLE]
Then the residual equations can be rewritten as
[TABLE]
For two dimensional cases on structured mesh, it will form a penta-diagonal matrix, which can be solved by LU-SGS iterations Jameson and Yoon (1987); Yoon and Jameson (1988); Zhu, Zhong, and Xu (2016). With the correction for conservative variables as an approximation of , we can get the predicted equilibrium state from the newly evolved macroscopic variables .
II.1.2 Evolution step for updating particle distribution function
Once we get the predicted equilibrium state , the microscopic residual in Eq. (6) can be evaluated. Simplifying the numerical flux on the left hand side of Eq. (8) by an upwind approach,
[TABLE]
we get the residual equation
[TABLE]
where
[TABLE]
Here is evaluated by the time-averaged UGKS flux over a physical time step and the collision term with the predicted equilibrium state . By using LU-SGS iterations, a correction approximating the error can be obtained from Eq. (14). After obtaining , the solution can be updated. Consequently, the macroscopic variables can be updated as well by taking moments of the renewed distribution function.
Different from the nonlinear Eq. (12), Eq. (14) can be regarded as a linear equation for the distribution function error if the mean collision time is frozen locally within each iteration step, because the coefficients and are only related to the discretization of the physical and velocity space. Therefore, different multigrid techniques are imposed on solving the nonlinear equation (12) of the conservative variables and the linear equation (14) of the gas distribution function. Details will be introduced next.
II.2 A two-grid cycle implicit UGKS
A two-grid cycle method is a basis for any multigrid algorithm. It is a combination of error smoothing and coarse grid correction. Usually it consists of a pre-smoothing, a coarse grid correction, and a post-smoothing part. Here we implement two-grid cycle technique into the implicit UGKS to develop a multigrid method.
Based on a finer grid and a coarser grid , the iteration step of the two-grid cycle for the implicit UGKS is illustrated in Fig. 1,
with a prediction step and an evolution step. Since interpolations of macroscopic variables and distribution function between two grids are involved, for a better representation the solutions and interpolations will be denoted as grid functions and grid operators respectively. As shown in Fig. 1, the two stages in the implicit UGKS are considered successively with the multigrid technique.
In the prediction step, the residuals of the implicit macroscopic equations are evaluated by the UGKS fluxes on a fine grid from a given approximate solutions of and . After times of pre-smoothing on this level, the residuals and conservative variables are updated to and . Then, both the renewed residuals and the smoothed conservative variables are restricted from the fine grid to the coarse grid by a transfer operator . On a coarse grid, the residual equations with restricted residuals and should be solved to get a correction of the conservative variables . Consequently, the residuals and solutions on the fine grid can be renewed through a prolongated correction with a transformation operator . Again, taking times for post-smoothing, the smoothed solution is regarded as the final result in this prediction step to give a predicted equilibrium state for the following evolution of the gas distribution function.
In the evolution step, the residual is obtained first on a fine grid from the given approximate solution and the predicted equilibrium state . Meanwhile, the residual will be renewed after times of pre-smoothing, and a correction will be obtained during these smoothing processes. As mentioned in Section II.1.2, the residual equation (14) of gas distribution function is a linear equation, therefore only the residual is needed to be restricted on a coarse grid to get a correction. The correction obtained by solving the residual equation on a coarse grid will be prolongated back onto the fine grid. With the interpolated correction , and renewed residual , times of post-smoothing can be carried out to give an updated distribution function . Then the conservative variables and equilibrium state can be updated from the moments of the gas distribution function.
So far, the two-grid cycle for the prediction and the evolution steps has been illustrated for the updating of the distribution function from to . It should be noted that the only difference between the two steps is whether the intermediate smoothed solution is required and restricted on a coarse grid, i.e., the difference between the so-called full approximation storage scheme and correction scheme. In the following, each component of the multigrid method will be introduced in details.
II.3 Numerical procedures in the multigrid method
II.3.1 Transfer operator : Restriction
For initialization on a successive coarser grid, variables such as the residuals should be transferred (restricted) from finer grid to coarser ones.
A restriction operator maps fine-grid functions to coarse-grid functions by a volume weighted interpolation for cell-centered schemes. For a specific variable denoted by , the restricted result inside cell on coarse grid becomes
[TABLE]
where is the set of subcells of cell and is one of the subcell members. In prediction step, both the smoothed conservative variables and renewed residuals should be restricted to a coarse grid to form the residual equation (12) on . As illustrated in Fig. 2,
we have
[TABLE]
where . In evolution step, only the residual is needed on a coarse grid, see Eq. (14). Therefore, we have
[TABLE]
II.3.2 Smoothing
The smoothing process, whether the pre-smoothing or post-smoothing, is to solve the residual equations by LU-SGS iterations to get a more accurate solution. It is a correction process of the solutions on a single grid. This is why one iteration step of the original implicit UGKS on a single grid is claimed as a smoothing method in Section II.1. In the current method, solving the residual equations on a coarsest grid is indeed implemented by applying LU-SGS iterations, i.e., through adequate times of smoothing.
In the prediction step, the residual equations (12) are rewritten on a coarse grid as
[TABLE]
where are the restricted conservative variables and are the accurate solutions of these equations. After the first time of LU-SGS iteration on this grid, the above equations can be solved to give new approximation solutions . Denoting the -th intermediate solution as , we get the governing equations for the -th time of smoothing, i.e.,
[TABLE]
where is the forcing function defined as the difference between the residuals directly transferred from the fine grid, and the macroscopic evolution equations-determined residuals which are recomputed on a coarse grid, i.e.,
[TABLE]
This is commonly used in solving nonlinear residual equations Jameson and Yoon (1987). Here are calculated by a flux splitting method as in Eq. (10). Therefore, for the -th smoothing process, the residuals on the right hand side of Eq. (20) can be updated by
[TABLE]
For the first smoothing iteration the Eq. (20) is identical to the Eq. (19). By solving Eq. (20) with LU-SGS iterations, multiple smoothing processes can be carried out.
Similarly, for the -th smoothing process of the distribution function in the evolution step, the residual equation (14) can be rewritten on a coarse grid as
[TABLE]
where and . Here is the accurate solution of Eq. (23) and is the initial distribution function on imaginarily restricted from . The purpose for us to give the expression of and by the intermediate distribution function is just for a better understanding of Eq. (23). It should be noted that the distribution function is indeed not a necessity in computations, while only -quantities are actually involved. In computation, the residual on the right hand side of Eq. (23) for each smoothing process is updated by
[TABLE]
where is the correction of the distribution function obtained from each smoothing process.
Taking sufficient times in the smoothing process, the residual equations (20) and (23) are supposed to be solved to give the coarse-grid corrections. In prediction step, the corrections of the conservative variables are obtained from while in evolution step the total correction of the distribution function is computed by a summation of the intermediate corrections in each smoothing process. Up to this point, we have obtained the corrections on the coarsest grid, which will be prolongated to finer grids to reduce the low-frequency solution error on finer grids.
II.3.3 Transfer operator : Prolongation
The bilinear interpolation is used to prolongate the corrections from the coarser grids to finer ones. As shown in Fig. 3(a),
the interpolated result of a specific variable on fine grid is
[TABLE]
where is the set of the coarse-grid stencil cells for the fine-grid cell . The weights are
[TABLE]
where , and is the distance between the center of fine-grid cell and the line which connects the cell centers of two neighboring members in .
For instance, the prolongated correction of distribution function gives
[TABLE]
Specifically, on Cartesian grids the weights give
[TABLE]
The weights given in Eq. (26) are also available for extrapolation treatment of the cells near boundaries. In the cases of extrapolation some of the distance may be negative. For the cell near boundary shown in Fig. 3(b), is negative while for the corner cell illustrated in Fig. 3(c) both and are negative. Specifically on Cartesian grids, the weights satisfy
[TABLE]
for boundary cells and
[TABLE]
for corner cells.
II.4 Extension to multiple grids
Each component in the multigrid method of implicit UGKS has been described above. In this subsection, the multigrid algorithm will be constructed from recursion of the two-grid cycle.
First we define the multigrid cycle in prediction step as
[TABLE]
and the multigrid cycle in evolution step as
[TABLE]
where is the level index, and are the times of pre-smoothing and post-smoothing respectively.
In details, the recursive descriptions of an FAS cycle, i.e., Eq. (31), in prediction step are the following.
(a)
Pre-smoothing
- •
calculate the forcing function on this level of grid by Eq. (21).
- •
get a better approximation and the updated residual by applying times of smoothing through two procedures, i.e.,
- –
get the intermediate approximation by solving Eq. (20) with LU-SGS iterations.
- –
renew the residuals by Eq. (22) with forcing function.
(b)
Coarse grid correction
- •
get the initial approximate solution and residual by restricting and from the fine grid to the coarser grid , see Eq. (17)
- •
compute a new approximate solution on the coarse grid , which may be one of the following two cases
- –
if , solve the residual equations by sufficient times of smoothing, see Eqs.(20), (21) and (22)
- –
if , apply another FAS cycle on this level
[TABLE]
- •
get the correction from the difference .
- •
interpolate the corrections to the finer grid obtaining by Eq. (25).
- •
update the solution to on
(c)
Post-smoothing
- •
get a smoothed approximate solution by applying steps of smoothing, with the following two steps:
- –
update the residual with the approximate solution and forcing function by Eq. (22).
- –
get the smoothed solution by solving Eq. (20).
The recursive CS cycles in Eq. (32) for the evolution step can be described as follows.
(a)
Pre-smoothing
- •
get the approximate correction and update the residual to by applying times of smoothing with two procedures, i.e.
- –
get the intermediate correction by solving Eq. (23) with LU-SGS iterations.
- –
renew the residuals by Eq. (24).
(b)
Coarse grid correction
- •
get the residual by restricting from the fine grid to the coarser grid by Eq. (18)
- •
compute a new approximate correction on the coarse grid , which may be one of the following two cases
- –
if , solve the residual equation by sufficient times of smoothing, see Eqs.(23) and (24).
- –
if , apply another one CS cycle on this level
[TABLE]
- •
interpolate the correction back to finer grid by Eq. (25) obtaining .
- •
update the total correction on .
(c)
Post-smoothing
- •
get a smoothed correction by applying steps of smoothing, similarly following two steps:
- –
update the residual by Eq. (24).
- –
get the smoothed correction by solving Eq. (23).
With these two recursive definition of multigrid cycles of prediction step and evolution step, the implicit UGKS on multiple grids can be described as
Step 1
calculate the time-averaged fluxes over physical time step and get the residual of conservative variables by Eq. (5);
Step 2
obtain the predicted conservative variables from
[TABLE]
Step 3
obtain the predicted equilibrium state from ;
Step 4
get the residual on the finest grid from Eq. (6) with predicted equilibrium state;
Step 5
obtain the total correction of distribution function from
[TABLE]
Step 6
get the updated the distribution function by the total correction;
Step 7
update the conservative variables and equilibrium state from compatible condition;
Step 8
check the residual of conservative variables
- •
if the convergent state is reached, stop the calculation,
- •
if not, go to Extension to multiple grids.
III Remarks and discussions
III.1 Mesh generation
Different from the algebraic multigrid method (AMG) Stüben (2001) which is based on mathematic treatment, the current multigrid method adopts geometric multigrid technique, so the concrete multiple grids should be generated first. For a given problem defined on a specific resolution (i.e., on a given discretized mesh), the multiple grids could be generated from the given discretization in physical space by coarsening algorithm level by level. Another way is to start with a coarsest grid to generate a satisfactory finest grid by refinement. In current paper the coarsening method from finest mesh is chosen to ensure that the convergent solution is defined on the original numerical discretization.
For structured grid, it is straightforward to generate the coarse meshes by deleting the grid points on every second line in each direction, see in Fig. 4.
After times of coarsening, levels of grids would be obtained. In this situation, the finest grid should satisfy
[TABLE]
where is the number of grid points in each direction. From Fig. 4, it can be observed that the coarsening method can retain more information of the finest grid, e.g., the growth rate of cell size along the x- and y-directions. For unstructured mesh, generation methods, such as nonnested grids, topological methods and agglomeration methods, were introduced in Blazek (2001); Mavriplis (1995), about which we will not further discuss in current paper.
III.2 Boundary condition
Generally, boundary conditions in explicit schemes can be imposed by employing ghost cells. To solve the corrections from residual equations, the quantities in the delta-form in ghost cells should be given to start the sweeps for LU-SGS iterations. As described in Zhu, Zhong, and Xu (2016), the boundary conditions for the implicit scheme on each level of grid are derived from those in the explicit UGKS.
For the conservative flow variables, the relation between the ghost cell and the inner cell can be expressed in the following form
[TABLE]
where represents a specific transformation relation. The linearization of the above equation gives
[TABLE]
which is the macroscopic governing equation of the boundary conditions adopted in the smoothing process of the prediction step. Here, we give the boundary condition for the isothermal walls to illustrate the treatment. For a solid wall moving velocity at temperature of , the macroscopic variables in the ghost cells are
[TABLE]
where . After linearization, the changes of the conservative variables in the ghost cell vary with the values in the inner cell by
[TABLE]
where are the conservative variables. And we have
[TABLE]
where is the total dimensions of degree of freedom and . Similarly, the boundary conditions for gas distribution function in the smoothing process of the evolution step can be derived from
[TABLE]
We have
[TABLE]
where is the distribution function at velocity corresponding to that in the ghost cells at velocity . For horizontal symmetric interfaces, we have for and . For an isothermal solid wall with moving velocity and temperature , for the diffusive reflection boundary condition the reduced distribution function in ghost cells is
[TABLE]
where is a constant for each discrete velocity. Therefore, the variation of gas distribution function in ghost cells is determined by
[TABLE]
where is computed by no-transmission condition
[TABLE]
where is the weight at velocity for numerical integrations.
The boundary conditions should be imposed when the LU-SGS sweeps come to the boundary cells and when the residuals need to be re-evaluated before interpolations.
III.3 Full multigrid (FMG) method
Generally, the evolution of residuals for a given case during calculations can be separated into three regions Mavriplis (1995) as shown in Fig. 5.
In the first region, residuals will increase up to a peak value and start to decrease, representing the initial evolution of the flow field. In the second region, residuals decrease exponentially with iteration steps during which the high-frequency error is mainly eliminated. And for the last region, residuals continue decreasing but with a low efficiency because the low-frequency error needs more iterations to attenuate. The multigrid techniques speed up the second and third stages by eliminating low-frequency error by enlarging the cell size. The full multigrid (FMG) method Stüben and Trottenberg (1982); Brandt and Livne (2011) takes the first region into considerations as well to achieve a better efficiency.
The FMG method starts from the coarsest level of grid to provide the initial approximate solutions for finer grids, which can reduce the evolution time of the flow field due to the lower computations on coarse grids. The structure of the FMG method in comparison with the V-type cycle is illustrated in Fig. 6.
The flow field will evolve on the coarser grids before being interpolated onto finer grids. Different from prolongation in multigrid cycles, the FMG interpolation denoted by double slash in Fig. 6(a) transfers the conservative variables and gas distribution functions from coarse grids to fine grids instead of their corrections, because it requires all flow variables to initialize the flow field on finer grids. It can be seen that the FMG method will be more effective in complex flows, for which more CPU time will be taken to evolve the initial flow fields using the explicit and implicit schemes on a single grid. With the similar idea, the algorithms with low order of accuracy can be also adopted to get a fully evolved approximate solution before taking a higher-order scheme.
III.4 Miscellaneous factors
There are many factors that should be considered in multigrid method to ensure the stability and convergence efficiency, such as the type of cycles, number of smoothing steps, the accuracy of the transfer operators, and the chosen of time steps. In the following, a brief discussion about these factors will be given.
There are several types of cycles, such as V-type and W-type, that are commonly used in multigrid methods. All types of cycles can be derived from the basic cycle, i.e., the two-grid cycle. Through recursion of two-grid cycles, the most natural derivation is the V-type cycle. The V-cycle of three-grid methods can be regarded as using a deeper two-grid cycle to solve the residual equation on the coarser grid of the two-grid cycle. Other types of multigrid cycle, such as W-cycle, F-cycle and adaptive cycle, can be constructed by different combination of the two-grid cycles for a better convergence efficiency. In the current paper, the influence of the cycle types will not be further discussed. Generally, the V-cycle is fast enough, but for complex situations advanced types may get better convergence efficiency.
Another factor that will influence the convergence speed is the number of the pre-smoothing and the post-smoothing on each level of grid. Although more smoothing steps may bring better convergence in one multigrid cycle, it will be more efficient not to smooth the error too much but rather carrying out a few more multigrid cycles. As demonstrated in Trottenberg, Oosterlee, and Schuller (2000), common choices are in practice. In this paper, two pre-smoothing steps are carried out before the restriction of residuals and one post-smoothing step is carried out after the prolongation for an upwind spatial discretizationBlazek (2001).
The restriction and prolongation should also satisfy certain accuracy requirements Trottenberg, Oosterlee, and Schuller (2000); Blazek (2001), i.e.,
[TABLE]
where and are the orders of the accuracy of the restriction and prolongation operators, respectively. is the order of the numerical scheme. As given in Section II.3.1 and II.3.3, the restriction by using the volume weighted interpolation and the prolongation by using bilinear interpolation give , and the second-order UGKS gives .
As described in paper Zhu, Zhong, and Xu (2016), there are two time steps in the implicit UGKS. The physical time step , which is used to calculate the time-averaged fluxes in the evaluation of residuals, is related to the cell size through the CFL condition. The other one is a pseudo-time step, namely the numerical time step , which is applied in the temporal discretization of the governing equations. For steady state solutions, the numerical time step is not a necessity, therefore it does not appear in the description of the current multigrid method. However, the numerical time step does help to improve the stability of the implicit schemes for tough numerical cases. If necessary, a term of could be added into the coefficients before the errors and in Eq. (12) and Eq. (14). For instance, a numerical time step which increases exponentially with iteration steps is used in the calculation of the hypersonic flow around the square cylinder in Section IV.3.
IV Rarefied flow studies
In this section, the multigrid implicit UGKS will be used to study rarefied flow phenomena from low and high speed at various Knudsen numbers. All UGKS computations in this section are carried out on a single machine with a processor of Intel(R) Core(TM) i5-4570 [email protected], and no parallel technique is adopted here. The comparison in terms of accuracy and computational efficiency between MIUGKS and DSMC, whenever available, will be presented.
IV.1 Lid-driven cavity flow
Simulations of lid-driven cavity flows are studied at different Knudsen numbers. Following the previous work Huang, Xu, and Yu (2012); John, Gu, and Emerson (2011), the gas in the cavity is argon with molecular mass and with an initial temperature . The cavity has a fixed wall temperature and a moving lid at a constant velocity . The Knudsen number is defined as the ratio of mean free path to the length of cavity side wall. The dynamic viscosity is evaluated by where . Cases at three different Knudsen numbers, i.e., have been tested.
In physical space, the computational domain is discretized with a mesh of cells. In velocity space, , and discrete velocity points are used respectively for cases at and . In all three cases, the trapezoidal rule is used in the integration of the discretized distribution function to get macroscopic variables. The steady state is thought to be reached when the mean squared residuals of the conservative variables are reduced to a level being less than , where the residuals are computed by
[TABLE]
which denotes the variation rate of the conservative variables. Here is the total number of discrete cells in the computational domain.
The results of the temperature distribution in the cavity at different Knudsen numbers have been plotted in Fig. 7.
The results of the multigrid method are consistent with those of the original implicit UGKS with a single level of grid, and agree well with the DSMC results obtained from paper Huang, Xu, and Yu (2012). We also plot the distribution of the normalized velocities along the vertical and horizontal central lines comparing to the results of DSMC in Fig. 8,
which also shows good agreement between the present results and reference data. In Fig. 9,
the convergence histories of the energy density with respect to CPU time are given to show the acceleration of the multigrid method. Obvious accelerating effects of the multigrid method on the implicit UGKS can be observed. Moreover, it can be seen that the multigrid methods with three-level grids and four-level grids converge faster than that with two-level grids. In comparison with the three-level grid method, the computation efficiency of the four-level scheme doesn’t further increase because of the extra computations for another coarser level of grids. In the higher Knudsen number cases at and , the multigrid method is about times faster than the original implicit scheme and in the case at the acceleration rate can be increased up to times. With a single machine (Intel(R) Core(TM) i5-4570 [email protected]), at the current scheme can get convergent solution with the CPU time being less than minutes, where the DSMC solution needs parallel supercomputers for that John, Gu, and Emerson (2011).
IV.2 Flat plate flow
Following the studies in paper Sun and Boyd (2004), subsonic flow passing over a flat plate with zero thickness at zero angle of attack is studied at different Reynolds numbers. The flat plate has a finite length with a fixed temperature of . The freestream is air with a temperature of at Mach number . The dynamic viscosity coefficient is calculated by with a temperature model index . The global Knudsen number and Reynolds number are defined with respect to the length of the plate and have a relation of .
Cases at different Reynolds numbers are studied using the current multigrid method and to explore its computation efficiency. In all cases, the farfield is 20 times of the plate length far away from the leading edge and trailing edge. As illustrated in Fig. 10,
the distances satisfy . For each case, we adopt different discretization of the physical space and velocity space, see those listed in Table 1.
Symmetric boundary condition is used for the axes in the upstream and downstream, and diffusive reflection with full thermal accommodation coefficient is adopted in the boundary condition for the isothermal solid wall.
The distributions of the temperature around the plate for all cases are given in Fig. (11).
The current multigrid method can get consistent solutions with the implicit UGKS. It can be seen that the temperature varies more evidently in the cases at the lower Reynolds numbers than that at the higher Reynolds numbers. In order to compare with results of the DSMC method and the information preservation (IP) method obtained from paperSun and Boyd (2004), the drag coefficient on the plate has been calculated by an integration of the skin friction coefficient over both sides of the plate, i.e.,
[TABLE]
where the skin coefficient is computed by
[TABLE]
in which the shear stress is the rate of the momentum transferred from gas to the solid wall for unit area. The drag coefficients varying with the Reynolds numbers are shown in Fig. 12.
The multigrid UGKS gives acceptable results matching well with the data from both the IP method and the DSMC. Specifically, the UGKS solutions match better with DSMC results in the cases with lower Reynolds numbers while get closer to IP method data in near continuum flow. The fitting formula as a reference in Fig. 12 is computed by
[TABLE]
The skin friction coefficients distributed on the flat plate are shown in Fig. 13,
where the solutions at and are compared with that from the DSMC and results in Fig. 13(a), and the rest results are compared with those from the implicit UGKS in Fig. 13(b). Good agreements have been obtained between the present results and the reference data.
In order to illustrate the efficiency of the multigrid method, we plot the convergence history of the implicit scheme and the multigrid method in Fig. (14).
The calculation stops when the mean squared residuals as defined in Eq. (47) get lower than . For a better description, the iteration steps and the total CPU time that cost by the implicit UGKS, three-level, four-level and five-level multigrid UGKS are listed in Table 2
and Table 3.
Generally, the multigrid method can speed up the computation by about times for the case with five levels of grids. From these tables it can be known that the CPU time cost by the multigrid method (e.g., with 5-level grids) is about 57% more than the implicit UGKS, due to the consumption on the coarser grids and interpolation between different grid levels, and the multi-smoothing process on each level. In the current test case, the convergence speed gets reduced with the increase of the Reynolds number.
IV.3 Hypersonic flow past a square cylinder
Following the research in paper Chen et al. (2017), the multigrid implicit UGKS is used to study hypersonic flow around a square cylinder. The freestream is argon gas at with an initial temperature of . The Knudsen number of the freestream is , defined relative to the diameter of the square cylinder by the VHS model with . The solid surface of the square cylinder is taken as isothermal wall with a fixed temperature of . Due to the symmetric property, only half of the physical domain is considered.
The physical domain is discretized into cells with a nearest distance of to the square surface. The multiple grids used in this case are shown in Fig. 15.
In velocity space, discrete velocity points are used for the integration of distribution function by the Newton-Cotes rules. Since a sudden start of a hypersonic flow in the whole computation domain with the same speed imposes great challenges in the initial simulation at the rear part of the square cylinder, in this case we initialize the rear domain behind the cylinder with and initially for the convergence evolution.
Fig. 16
shows the flow field at the steady state, including the distributions of temperature, horizontal velocity and vertical velocity. The results of the multigrid UGKS are compared with the DSMC results obtained by dsmcFoam in Chen et al. (2017). The present results agree well with the reference ones for each contour. The normalized surface quantities, such as normal pressure, shear stress, and heat flux, are plotted in Fig. 17.
And the distribution of the flow variables along the symmetric axis in the upstream are presented in Fig. 18
and compared with DSMC results. Basically, the present results obtained from the multigrid UGKS match well with the reference data.
For this case, the numerical time step is employed, which increases exponentially with iteration steps by
[TABLE]
During calculations, it is found that the multigrid method with multiple smoothing steps is more robust than the original implicit UGKS. So and are used for the multigrid UGKS and the implicit scheme, respectively. The convergence history is plotted in Fig. 19.
In this case, the full multigrid method is used to give a better initial approximate solution for finer grids. It can be observed that the full multigrid method does improve the convergence efficiency and it is about times faster than the implicit UGKS on a single grid for this case. For the same case, the DSMC method obtaioned by dsmcFoam Scanlon et al. (2010) takes about hours to get the steady state solution by parallel computing on two server nodes, each of which has two processors of Intel(R) Xeon(R) E5-2680 [email protected] with 12 cores. However, the multigrid implicit UGKS needs only minutes by serially computing on a single machine with a CPU of Intel(R) Core(TM) i5-4570 [email protected]. The improvement of the efficiency in the current scheme in comparison with the DSMC method is significant. In the current high speed flow study, the MIUGKS is about times faster than the DSMC.
V Conclusions
In this paper, we present a geometric multigrid method for the implicit unified gas-kinetic scheme for rarefied flow computations. Both stages in the implicit UGKS, i.e., the prediction of equilibrium state and the evolution of distribution function, are treated with multigrid techniques. In prediction step, the governing equations of macroscopic conservative flow variables are solved by the full approximation scheme on each level of grid. While in the evolution step, the governing equations of microscopic distribution function are solved by the correction scheme, by which the distribution function is not required on coarser grids so that the increasing of the computational cost can be well controlled. With a recursive definition of the FAS cycle and CS cycle, the multigrid method for the implicit UGKS has been constructed from the two-grid method.
The multigrid implicit UGKS has been applied to the study of non-equilibrium flows, such as lid-driven cavity flow at different Knudsen numbers, subsonic flow around a plate, and the hypersonic flow past a square cylinder, and the accuracy and efficiency of the multigrid method has been well demonstrated. In comparison with the implicit UGKS with a single level of grid, which is already hundreds times faster than the explicit UGKS, the convergence efficiency of multigrid implicit UGKS has been further improved in all flow regimes from low and high speed flows. In general, the multigrid UGKS with -level grids takes about % more CPU time than the implicit UGKS with a single level of grid within one iteration step, but overall it is about to times more efficient than the implicit scheme. As a further development, the AMG technique can be employed here as well to remove the generation of multiple grids. The multigrid UGKS can be also developed on unstructured mesh for the applications with complex geometry.
For rarefied flow computations, especially for the hypersonic flow, the DSMC is currently the dominant method in the engineering rarefied flow applications. However, with the implementation of the implicit and multigrid techniques, the UGKS becomes more efficient than the DSMC method, at least in all cases presented in this paper. Even for the high speed flow at Mach number and Knudsen number , the UGKS is two orders of magnitude more efficient than the DSMC method. For low speed flows in the transition and near continuum regimes, the efficiency differences between UGKS and DSMC get even larger. With the implementation of acceleration techniques, such as implicit, preconditioning, local time, and multigrid, the UGKS becomes an accurate, reliable, and efficient method for rarefied flow computations. It has been successfully used in rarefied flow applications Jiang (2016), and been extended to other non-equilibrium transport processes, such as radiative transfer and plasma Sun, Jiang, and Xu (2017); Liu and Xu (2017). With computational efficiency increase, the equation-based flow solver will become an alternative choice in the non-equilibrium flow study and practical engineering applications.
Acknowledgements.
The authors would like to thank Mr. Lianhua Zhu for providing the DSMC results for hypersonic flow around the square cylinder, and the detailed computational cost. This work of Zhu and Zhong was supported by National Natural Science Foundation of China (Grant No. 11472219) and National Pre-Research Foundation of China, as well as the 111 Project of China (B17037). The research work of Xu is supported by Hong Kong research grant council (16207715,16211014,620813) and NSFC (91330203, 91530319).
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Xu (2001) K. Xu, Journal of Computational Physics 171 , 289 (2001).
- 2Xu and Huang (2010) K. Xu and J.-C. Huang, Journal of Computational Physics 229 , 7747 (2010).
- 3Xu and Liu (2017) K. Xu and C. Liu, Physics of Fluids 29 , 026101 (2017).
- 4Mieussens (2000 a) L. Mieussens, Journal of Computational Physics 162 , 429 (2000 a).
- 5Bird (1994) G. A. Bird, Molecular gas dynamics and the direct simulation of gas flows (Oxford University Press, USA, 1994).
- 6Chen et al. (2012) S. Chen, K. Xu, C. Lee, and Q. Cai, Journal of Computational Physics 231 , 6643 (2012).
- 7Xu (2015) K. Xu, Direct modeling for computational fluid dynamics: construction and application of unified gas-kinetic schemes (World Scientific, Singapore, 2015).
- 8Liu et al. (2014) S. Liu, P. Yu, K. Xu, and C. Zhong, Journal of Computational Physics 259 , 96 (2014).
