Next Article in Journal
The Existence and Averaging Principle for a Class of Fractional Hadamard Itô–Doob Stochastic Integral Equations
Previous Article in Journal
IRS-Assisted Hybrid Secret Key Generation
Previous Article in Special Issue
Comparative Numerical Analysis for the Error Estimation of the Fluid Flow over an Inclined Axisymmetric Cylinder with a Gyrotactic Microbe
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

An Adaptive Mesh Refinement–Rotated Lattice Boltzmann Flux Solver for Numerical Simulation of Two and Three-Dimensional Compressible Flows with Complex Shock Structures

1
College of Aerospace Engineering, Nanjing University of Aeronautics and Astronautics, Yudao Street 29, Nanjing 210016, China
2
State Key Laboratory of Mechanics and Control of Mechanical Structures, Nanjing University of Aeronautics and Astronautics, Yudao Street 29, Nanjing 210016, China
3
Chengdu Fluid Dynamics Innovation Center, 75 West Second Ring Road, Chengdu 610072, China
4
Jiangsu Key Laboratory of Hi-Tech Research for Wind Turbine Design, Nanjing University of Aeronautics and Astronautics, Yudao Street 29, Nanjing 210016, China
*
Author to whom correspondence should be addressed.
Symmetry 2023, 15(10), 1909; https://doi.org/10.3390/sym15101909
Submission received: 11 September 2023 / Revised: 2 October 2023 / Accepted: 7 October 2023 / Published: 12 October 2023
(This article belongs to the Special Issue Symmetry in Numerical Analysis and Computational Fluid Dynamics)

Abstract

:
An adaptive mesh refinement–rotated lattice Boltzmann flux solver (AMR-RLBFS) is presented to simulate two and three-dimensional compressible flows with complex shock structures. In the method, the RLBFS, which has a strong shock-capturing capability and can effectively eliminate the shock instability phenomenon, is applied to solve the flow filed by reconstructing the fluxes at each cell interface adaptively with the mesoscopic lattice Boltzmann model. To locally and dynamically improve the resolution of intricate shock structures and optimize the required computational resources, a block-structured adaptive mesh refinement (AMR) technique is introduced. The validity and effectiveness of the proposed method are confirmed through a range of two and three-dimensional numerical cases, including the shock tube problem, the four-wave Riemann problem, explosion within a rectangular box, and the vorticity induced by a shock. The results obtained using the AMR-RLBFS exhibit excellent agreement with published data and demonstrate high accuracy in capturing complex shock structures. The computational efficiency of the AMR-RLBFS can be also improved significantly compared to the RLBFS on uniform grids. Furthermore, the numerical outcomes underscore the capability of the AMR-RLBFS to eliminate shock instability effects while efficiently capturing a broader spectrum of small-scale vertical structures. These findings highlight the ability of AMR-RLBFS to improve the computational efficiency and capture intricate shock structures effectively, making it a valuable tool for studying a wide range of compressible flows from aerodynamics to astrophysics.

1. Introduction

With the rapid development of computer technology, computational fluid dynamics (CFD) was introduced and soon became widely used in medical, energy, marine, and aerospace fields due to its low cost and high applicability. It deals with the governing equations (Navier–Stokes equations) using various numerical methods, and the finite volume method (FVM) [1] is one of the most widely used numerical methods. Through direct discretization of the conservation laws, the physical quantities in FVM are conserved. Mass, momentum, and energy are also preserved through the numerical treatment, which maintains a high degree of accuracy and can be used for problems with complex geometry. The key to the success of the FVM for simulating compressible flows is the development of an appropriate flux solver to evaluate the fluxes at the cell interface.
Many effective Riemann solvers have been proposed by approximating the macroscopic fluxes directly. For instance, the Roe scheme [2] is a good choice for simulating compressible inviscid flow due to its high accuracy and good resolution for shock structures. However, the traditional Roe approach [3] is impotent in the face of the problem of shock instability in hypersonic flows. Quirk [4] delineated three instances of shock instability: the carbuncle phenomenon, kinked Mach stem, and odd–even decoupling. Many experts posit that the primary catalyst for shock instability lies in the inadequate numerical dissipation within the shock region. Numerous strategies have been proposed to address this issue. These include amalgamating dissipative schemes with less dissipative yet reasonably accurate schemes [5], employing entropy fixation [6] to augment dissipation through restrictions on the minimum eigenvalue of the system, enhancing fundamental upwind dissipation [7], and introducing shear viscosity in the momentum flux [8]. Some have tackled the problem by curbing local dissipation [9]. Others attribute the shock instability to the momentum interpolation mechanism (MIM) in the Roe scheme and consequently advocate for an enhanced Roe scheme [10]. A prevailing viewpoint attributes shock instability to the multi-dimensional character of compressible flow, prompting the development of a multi-directional Riemann solver along each cell interface, known as the rotated Roe scheme [11,12]. This novel approach employs the Roe scheme in two directions by decomposing the cell interface’s normal vector into two components: one aligned with the velocity difference vector, and the other orthogonal to it. Notably, the rotated Roe scheme exhibits a robust capacity to capture strong shocks and effectively eliminate the phenomenon of shock instability.
In contrast to macroscopic Riemann flux solvers, recent years have seen the development of mesoscopic numerical methods based on lattice Boltzmann [13,14] and gas kinetic schemes. Utilizing the Maxwellian equilibrium distribution function as a foundation, various compressible lattice Boltzmann models [15,16,17,18,19,20] have been introduced, differing in lattice velocities and equilibrium distribution functions [21,22,23,24]. Building upon these models, the lattice Boltzmann flux solver (LBFS) [25] was formulated, accompanied by subsequent refinements [26,27,28,29,30,31,32]. This novel approach effectively establishes a local mesoscopic kinetic flux solver when addressing both the Euler equation and Navier–Stokes equations through the FVM. For the simulation of incompressible flows, the LBFS is known to successfully circumvent the limitations of the traditional lattice Boltzmann method (LBM), such as lattice uniformity, coupling of time intervals with grid spacing, and the difficulty of implementing boundary conditions. For the simulations of compressible flows, the inviscid fluxes in the LBFS are reconstructed from the local solution of the one-dimensional compressible lattice Boltzmann model [30]. The viscous fluxes in the LBFS are approximated by a smoothing function, and the numerical dissipation is controlled by a selection function.
Recently, a rotated lattice Boltzmann flux solver (RLBFS) with enhanced stability was introduced in [31,32] for scenarios involving high Mach numbers and strong shock waves in compressible flows. This innovative technique decomposes the outer normal direction of each cell interface into two components, determined by the velocity difference vector and the direction perpendicular to it, respectively. Inviscid fluxes in both of these directions are assessed using the LBFS, with the final fluxes at each interface derived from a weighted combination of these two fluxes.
For the simulation of compressible flows featuring intricate shock structures, the applications of fixed or uniform grids across the entire flow domain can often entail substantial computational resources, although they are advantageous in terms of simplifying implementation and reducing modeling complexity. This is especially true when investigating unsteady flows with small-scale vortex phenomena. In contrast, addressing the challenge of complex shock structures can be accomplished with greater efficiency by employing adaptive mesh refinement (AMR) methods. Adaptive mesh refinement enables the enhancement of or reduction in mesh resolution where it is needed, offering a dynamic and localized approach for reducing overall computational resource demands. Various AMR approaches [33,34,35,36,37,38,39,40] have been developed and utilized, each with their own strengths and suitability for particular applications. Among them, the block-based approach [36,37,38,39,40] has demonstrated strong performance in diverse applications. This approach involves dividing the computational domain into blocks or patches of cells, and then selectively refining or coarsening entire blocks based on specified criteria. Block-based AMR is often favored for its simplicity and efficient parallelism since each block can be processed independently. It is particularly effective in scenarios where localized refinement is sufficient to capture key flow features, such as intricate shock structures and vortices.
In sight of the advantages of the RLBFS and the AMR technology, the combination of these two methods may present a powerful synergy that significantly reduces the overall computational cost and maintains high resolution in critical areas simultaneously, which motivates the present work. Particularly, a block-structured AMR-RLBFS is presented and validated by simulating both two and three-dimensional compressible flows with intricate shock structures and vortices. The method is developed in the framework of AMROC [37,38,39,40], which dynamically refines the computational mesh in regions with complex flow features, allowing for the allocation of computational resources precisely where they are needed the most. When coupled with the recently proposed RLBFS [31,32], which accurately captures the complex wave interactions and shock structures in compressible flows, the simulation becomes more efficient and robust. This combination enables one to achieve a balance between computational resources and simulation accuracy, making it a valuable tool for studying a wide range of compressible flow phenomena, from aerodynamics to astrophysics, with improved efficiency. This rest of this paper is organized in the following way. Section 2 presents the details of the AMR-RLBFS, including the governing equations, LBFS and RLBFS principles, and the block-structured AMR technology. Section 3 validates the AMR-RLBFS and compares it with the original LBFS in the AMR framework. Applications of the AMR-RLBFS to simulate two and three-dimensional problems are also presented to further investigate its performance. Section 4 concludes and summarizes this paper.

2. Methodology

In this section, the development of the AMR-RLBFS is presented, covering the governing equations for compressible flows, the utilization of LBFS and RLBFS to compute fluxes at cell interfaces, and the application of block-structured AMR techniques to update computational grids.

2.1. Governing Equations

The compressible, inviscid flows are considered in the present study, whose governing equations of mass, momentum and energy can be written in the following conserved form:
Q t + F x + G y + H z = 0 ,
Q = [ ρ ρ u ρ v ρ w ρ E ] , F = [ ρ u ρ u 2 + p ρ u v ρ u w ρ u H ] , G = [ ρ v ρ v u ρ v 2 + p ρ v w ρ v H ] , H = [ ρ w ρ w u ρ w v ρ w 2 + p ρ w H ] .
where ρ is density; p is pressure; and u, v, and w represent the velocity components in the Cartesian coordinate system. Considering the ideal gas model, the equation of state is given as follows:
p = ( γ 1 ) [ ρ E ρ 2 ( u 2 + v 2 + w 2 ) ] ,
In Equation (3), E and H represent the total specific internal energy and total specific enthalpy, respectively, which are obtained by the following:
E = 1 γ 1 p ρ + 1 2 ( u 2 + v 2 + w 2 ) , H = p ρ + E ,
Here, γ is the specific heat ratio, taken as γ = 1.4 in air. By applying the cell-centered finite volume discretization of Equation (1) in a control volume Ω, the integral of the fluxes in Equation (1) is approximated by a sum of the fluxes that cross the cell interface:
d W I d t = 1 Ω I i = 1 N f ( F c i S i ) .
where I is the index of the control volume. ΩI and Nf represent the volume and the number of faces of the control volume I, respectively. Si denotes the area of the i-th face of the control volume. In the present work, the fluxes in Equation (5) can be obtained using LBFS or RLBFS.

2.2. LBFS with D1Q4 Model

It has been shown that the non-free parameter lattice Boltzmann model [27,28] can effectively model inviscid compressible flows. In this method, the FVM is used to discretely solve the governing equations for updating the flow variables at the cell centers, and the D1Q4 model is used to evaluate the inviscid fluxes at each cell interface. A typical non-free parameter D1Q4 model is shown in Figure 1, which contains six unknowns (four equilibrium distribution functions, g1, g2, g3, g4, and two lattice velocities, d1, d2), and all are determined by Equation (6).
g 1 = ρ ( d 1 d 2 2 d 2 2 u + d 1 u 2 + d 1 c 2 + u 3 + 3 u c 2 ) 2 d 1 ( d 1 2 d 2 2 ) , g 2 = ρ ( d 1 d 2 2 + d 2 2 u + d 1 u 2 + d 1 c 2 u 3 3 u c 2 ) 2 d 1 ( d 1 2 d 2 2 ) , g 3 = ρ ( d 1 2 d 2 + d 1 2 u d 2 u 2 d 2 c 2 u 3 3 u c 2 ) 2 d 2 ( d 1 2 d 2 2 ) , g 4 = ρ ( d 1 2 d 2 d 1 2 u d 2 u 2 d 2 c 2 + u 3 + 3 u c 2 ) 2 d 2 ( d 1 2 d 2 2 ) , d 1 = u 2 + 3 c 2 4 u 2 c 2 + 6 c 4 , d 2 = u 2 + 3 c 2 + 4 u 2 c 2 + 6 c 4 .
where c stands for the specific velocity of particles defined as c = D p / ρ and D denotes the space dimension for the D1Q4 model, D = 1. Once the equilibrium distribution functions and lattice velocities are in hand, the flow variables can be calculated from the following relationships [30]:
ρ = i = 1 4 g i , ρ u = i = 1 4 g i ξ i , ρ u u + p = i = 1 4 g i ξ i ξ i , ρ E = i = 1 4 g i ( 1 2 ξ i ξ i + e p ) , ( ρ E + p ) u = i = 1 4 g i ( 1 2 ξ i ξ i + e p ) ξ i .
where ξ i is the particle velocity in the i-direction, ξ 1 = d 1 , ξ 2 = d 1 , ξ 3 = d 2 , ξ 4 = d 2 . e p is the potential energy of particles, e p = [ 1 ( γ 1 ) D / 2 ] e . The above 1D model must be applied along the normal direction of the interface when considering multi-dimensional problems. For example, for the 2D case, as shown in Figure 2, we can use the normal velocity Un to replace the velocity u in the D1Q4 model given in Equation (7) and take the tangential velocity Uτ into account.
The flux is reconstructed by the LBFS in the direction perpendicular to the cell interface after the introduction of the non-free parameter D1Q4 model [27,28]. Under the assumption that this cell interface is located at x = 0, the inviscid flux of the interface contributed by the normal velocity is calculated according to the following equation [30]:
F c , i + 1 / 2 * = [ ρ U n ρ U n U n + p ( ρ ( 1 2 U n U n + e ) + p ) U n ] T = i = 1 4 ξ i φ α f i ( 0 , t ) ,
φ α = ( 1 , ξ i , 1 2 ξ i 2 + e p ) T .
where φα represents the momentum, the notation * means numerical value, and f i ( 0 , t ) is the distribution function at the cell interface. Normally, f i is composed of an equilibrium part f i e q and a non-equilibrium part f i n e q .
f i ( 0 , t ) = f i e q ( 0 , t ) + f i n e q ( 0 , t ) ,
The non-equilibrium part f i n e q can be approximated by the equilibrium distribution function at the cell interface and its surrounding point [30]. According to Chapman–Enskog analysis and the simplification using Taylor expansion, the distribution function of the cell interface is obtained:
f i ( 0 , t ) = g i ( 0 , t ) τ 0 [ g i ( 0 , t ) g i ( ξ i δ t , t δ t ) ] + O ( δ t ) .
where g i ( 0 , t ) is the equilibrium distribution function at the cell interface, and g i ( ξ i δ t , t δ t ) is the equilibrium distribution function at the surrounding point of the cell interface. τ 0 = τ / δ t is the dimensionless collision time and δ t is the streaming time step. The total inviscid fluxes at the cell interface can be obtained by substituting Equation (11) into Equation (8) and by considering the tangential inviscid flux.
F c , i + 1 / 2 = ( 1 τ 0 ) F c , i + 1 / 2 ( I ) + τ 0 F c , i + 1 / 2 ( I I ) , F c , i + 1 / 2 ( I ) = [ F c , i + 1 / 2 ( I * ) ( 1 ) F c , i + 1 / 2 ( I * ) ( 2 ) n x ρ U n U τ n y F c , i + 1 / 2 ( I * ) ( 2 ) n y + ρ U n U τ n x F c , i + 1 / 2 ( I * ) ( 3 ) + ρ U n U τ 2 / 2 ] i + 1 / 2 * , F c , i + 1 / 2 ( I I ) = [ F c , i + 1 / 2 ( I I * ) ( 1 ) F c , i + 1 / 2 ( I I * ) ( 2 ) n x ρ U n U τ n y F c , i + 1 / 2 ( I I * ) ( 2 ) n y + ρ U n U τ n x F c , i + 1 / 2 ( I I * ) ( 3 ) + ρ U n U τ 2 / 2 ] i + 1 / 2 * .
According to Equation (12), there are two parts F c , i + 1 / 2 ( I ) and F c , i + 1 / 2 ( I I ) of the inviscid fluxes F c , i + 1 / 2 : the first part F c , i + 1 / 2 ( I ) is the flux at the cell interface while the second part F c , i + 1 / 2 ( I I ) is the flux on the surrounding points of the interface. Therefore, an accurate evaluation of g i ( 0 , t ) and g i ( ξ i δ t , t δ t ) is the key to calculating total inviscid fluxes F c , i + 1 / 2 . By taking τ 0 = 0 , Equation (11) can be reduced to the following:
f i ( 0 , t ) = g i ( 0 , t ) ,
In order to obtain the equilibrium distribution function g i ( 0 , t ) , the conserved variables at the cell interface should be computed in advance. According to Equation (7), at the cell interface, the density, momentum in the normal direction, and energy attributed to normal velocity can be computed by the following equation:
W c , i + 1 / 2 * = [ ρ ρ U n ρ ( 1 2 U n U n + e ) ] T = i = 1 4 φ α f i ( 0 , t ) = i = 1 4 φ α g i ( 0 , t ) ,
According to the compatibility condition, the non-equilibrium part of distribution function has no contribution in calculation of conserved variables. Thus, the conserved variables of the cell interface change to the following:
W c , i + 1 / 2 * = i = 1 4 φ α g i ( 0 , t ) = i = 1 4 φ α g i ( ξ i δ t , t δ t ) .
From Equation (15), it can be seen that the conserved variables at the cell interface can be computed from g i ( ξ i δ t , t δ t ) , which is the function of the conserved variables at the surrounding point of the cell interface. Specifically, the equilibrium distribution function g i ( ξ i δ t , t δ t ) can be written as follows:
g i ( ξ i δ t , t δ t ) = { g i L , if   ξ i 0 , g i R , if   ξ i 0.
where g i L and g i R are the equilibrium distribution functions at the left and right side of the cell interface, respectively. For the non-free parameter D1Q4 model [27,28], Equation (16) can be further reduced:
g i ( ξ i δ t , t δ t ) = { g i L , if   i = 1 , 3 , g i R , if   i = 2 , 4.
The streaming and collision process of the D1Q4 model at the cell interface can be found in Figure 3. Substituting Equation (17) into Equation (15), we can obtain the following:
W c , i + 1 / 2 * = i = 1 , 3 φ α g i L + i = 2 , 4 φ α g i R ,
To evaluate the tangential velocity U τ at the cell interface, one of the feasible ways can be expressed as follows:
ρ U τ = i = 1 4 g i U τ = i = 1 , 3 g i L U τ L + i = 2 , 4 g i R U τ R , ρ ( U τ ) 2 = i = 1 4 g i ( U τ ) 2 = i = 1 , 3 g i L ( U τ L ) 2 + i = 2 , 4 g i R ( U τ R ) 2 ,
where U τ , U τ L , and U τ R are the tangential velocity at the cell interface and at the left and right side of the cell interface, respectively. Using Equations (18) and (19), we plug all of the primitive variables into Equation (6) to obtain the equilibrium distribution function g i ( 0 , t ) for the cell interface. As such, the inviscid flux F c , i + 1 / 2 ( I ) at the cell interface can be expressed as follows:
F c , i + 1 / 2 ( I ) = [ ρ U n ( ρ U n U n + p ) n x ρ U n U τ n y ( ρ U n U n + p ) n y + ρ U n U τ n x ( ρ E + p ) U n + ρ U n U τ 2 / 2 ] i + 1 / 2 * .
In this case, the numerical dissipation of the inviscid fluxes calculated with LBFS is very small, and thus the results are very accurate for boundary layer flows. However, when simulating hypersonic flows with strong excitation waves, oscillations and even dispersions tend to occur. By taking τ 0 = 1 , Equation (11) can be reduced to the following:
f i ( 0 , t ) = g i ( ξ i δ t , t δ t ) ,
In Equation (21), the distribution function g i ( ξ i δ t , t δ t ) at the cell interface is determined by the equilibrium distribution function at the surrounding point of the cell interface. Since g i ( ξ i δ t , t δ t ) has been determined by Equation (17), by substituting Equation (21) into Equation (8), we can obtain the mass flux, momentum flux in the normal direction and energy flux attributed to the normal velocity across the interface:
F c , i + 1 / 2 * = [ ρ U n ρ U n U n + p ( ρ ( 1 2 U n U n + e ) + p ) U n ] T = i = 1 4 ξ i φ α g i ( ξ i δ t , t δ t ) ,
In addition, the contribution of the tangential velocity to the momentum flux in the tangential direction and energy flux can be approximated by the following:
ρ U n U τ = i = 1 4 ξ i g i U τ = i = 1 , 3 ξ i g i L U τ L + i = 2 , 4 ξ i g i R U τ R , ρ U n ( U τ ) 2 = i = 1 4 ξ i g i ( U τ ) 2 = i = 1 , 3 ξ i g i L ( U τ L ) 2 + i = 2 , 4 ξ i g i R ( U τ R ) 2 ,
With Equations (22) and (23), the inviscid flux F c , i + 1 / 2 ( I I ) at the cell interface can be expressed as follows:
F c , i + 1 / 2 ( I I ) = [ i = 1 4 ξ i g i i = 1 4 ξ i ξ i g i n x i = 1 4 ξ i g i U τ n y i = 1 4 ξ i ξ i g i n y + i = 1 4 ξ i g i U τ n x i = 1 4 ξ i ( 1 2 i = 1 4 ξ i ξ i + e p ) g i + 1 2 i = 1 4 ξ i g i ( U τ ) 2 ] i + 1 / 2 * .
Obviously, a large numerical dissipation is introduced in this case, and the LBFS can simulate the hypersonic inviscid flow with a very high Mach number very well, but the large numerical dissipation will not provide an accurate solution in the boundary layer.
In order to accurately capture strong shock waves and thin boundary layers, τ 0 can be regarded as the weight of the numerical dissipation, and the value of τ 0 should be a variable rather than a constant, so we use a switch function developed by [30] that can control τ 0 . This switch function can make the value of τ 0 close to zero in the boundary layer and close to one around the strong shock wave. τ 0 is shown in the following equations.
τ 0 = tanh ( C | p L p R | p L + p R ) , τ 0 = max { τ L , τ R } , τ L = max i = 1 , N f L { τ i } , τ R = max i = 1 , N f R { τ i } .
where tanh ( x ) is the hyperbolic tangent function and PL and PR are the pressure on the left side and the right side of the cell interface, respectively. C is an amplifying factor that usually ranges from 10 to 100 when simulated. In this paper, C = 100 is used. τ L and τ R are the maximum values of the switch function at the left and right control volumes. N f L and N f R are the numbers of the faces of the left and right control volumes, respectively. Then, Equation (12) is changed to the following:
F c , i + 1 / 2 = ( 1 τ 0 ) F c , i + 1 / 2 ( I ) + τ 0 F c , i + 1 / 2 ( I I ) , F c , i + 1 / 2 ( I ) = [ ρ U n ( ρ U n U n + p ) n x ρ U n U τ n y ( ρ U n U n + p ) n y + ρ U n U τ n x ( ρ E + p ) U n + ρ U n U τ 2 / 2 ] i + 1 / 2 * , F c , i + 1 / 2 ( I I ) = [ i = 1 4 ξ i g i i = 1 4 ξ i ξ i g i n x i = 1 4 ξ i g i U τ n y i = 1 4 ξ i ξ i g i n y + i = 1 4 ξ i g i U τ n x i = 1 4 ξ i ( 1 2 i = 1 4 ξ i ξ i + e p ) g i + 1 2 i = 1 4 ξ i g i ( U τ ) 2 ] i + 1 / 2 * .
Meanwhile, the two sides of the interface conserved variables are processed using a three-point MUSCL interpolation with a slope limiter before the flux calculation to improve the accuracy of the calculations.
W i + 1 / 2 L = W i + 1 2 Ψ ( r i 1 / 2 + ) Δ i 1 / 2 , W i 1 / 2 R = W i 1 2 Ψ ( r i + 1 / 2 + ) Δ i + 1 / 2 , Δ i 1 / 2 = W i W i 1 , Δ i + 1 / 2 = W i + 1 W i , r i 1 / 2 + = Δ i + 1 / 2 Δ i 1 / 2 , r i + 1 / 2 = Δ i 1 / 2 Δ i + 1 / 2 , Ψ ( r ) = 1 2 [ ( 1 ω ) Φ ( r ) + ( 1 + ω ) r Φ ( 1 r ) ] .
where W i 1 / 2 R and W i + 1 / 2 L represent the conserved variables on the left and right sides of cell i, respectively. ω is the interpolation parameter, and in this paper, ω = 0 represents linear interpolation. Φ ( r ) is the slope limiter function, which satisfies Φ ( r ) = r Φ ( 1 r ) . For the one-dimensional Riemann problem, we use the van Leer slope limiter function [41]:
Φ ( r ) = r + | r | 1 + | r | .
For the two-dimensional and three-dimensional cases, we use the minmod slope limiter function:
Φ ( r ) = max ( 0 , min ( r , 1 ) ) .

2.3. The Rotated LBFS

The LBFS is an effective numerical method for the simulation of compressible flows, as described in the previous section. In order to further improve the performance of the LBFS for solving the carbuncle, kinked Mach stem, and odd–even decoupling problems encountered by conventional Riemann solvers when simulating compressible flows with complex shock structures, the RLBFS proposed in [31,32] has been used in the present study. Instead of applying the LBFS directly in the direction n perpendicular to the cell interface as shown in Figure 4, the RLBFS first decomposes the normal vector of the cell into two orthogonal vectors, n 1 and n 2 , and then applies the LBFS in these two directions separately to calculate the fluxes. The relationship between these vectors at each cell boundary can be given as follows:
n = α 1 n 1 + α 2 n 2 , n 1 n 2 = 0.
where | n 1 | = | n 2 | = 1 , α 1 = n n 1 and α 2 = n n 2 . In order to make n 1 and n 2 have the same left and right states at the cell interface, α 1 0 and α 2 0 need to be guaranteed. In Figure 4, if the separation vector is in the green line state, it can be identified as an optional separation scheme, and if any of the components are in the red dashed line state, they must all be reversed to the blue line state before it can be identified as an optional separation scheme.
Therefore, the flux of the rotated LBFS can be calculated by the following equation:
F R L B F S = F R L B F S ( n ) = α 1 F L B F S ( n 1 ) + α 2 F L B F S ( n 2 ) .
Both F L B F S ( n 1 ) and F L B F S ( n 2 ) can be obtained using Equation (26). According to [11,12] and [31,32], the choice of n 1 has a great influence on numerical stability. The pressure–gradient direction, velocity–magnitude–gradient direction, and velocity–difference vector are some common choices, while the velocity–difference vector can effectively eliminate the shock instabilities. Therefore, in this paper, n 1 is also determined by the velocity–difference vector, which is obtained by the following:
n 1 = { n , if ( Δ u ) 2 + ( Δ v ) 2 ε , Δ u i + Δ v j ( Δ u ) 2 + ( Δ v ) 2 , otherwise .
where Δ u = u R u L , Δ v = v R v L , and ε is a small positive number. According to Equation (32), n 1 can be obtained. Moreover, since n 1 n 2 = 0 ,   n 2 can be calculated in the following form:
n 2 = k × n 1 ,
where k = i × j . The rotated flux function can be easily extended to three-dimensional cases. n 1 can also be obtained by Equation (32), then n 2 can be calculated in the following form:
n 2 = ( n 1 × n ) × n 1 .
Other parameters are calculated in the same way as in two-dimensional cases. Regarding the values of ε , in this paper, ε = 10 12 U * is used for the Sod shock tube problem and the four-wave two-dimensional Riemann problem to make a large enough difference between the RLBFS and the LBFS, and ε = 10 3 U * is used for the three-dimensional problem, where U * is the free stream velocity. By performing this, we obtain the rotated LBFS scheme, which is proposed in [31,32] to obtain a strong shock-capture capability, to eliminate the shock instability that occurs in the LBFS, and to obtain better stability than the LBFS scheme.

2.4. Block-Structured Adaptive Mesh Refinement

The LBFS and RLBFS presented in the previous two sub-sections are implemented on the block-structured adaptive mesh so that the AMR-RLBFS is developed, which is able to accurately capture complex flow phenomena, such as shock waves, contact discontinuities, shear layers, and vortices in compressible flows. A simplified version [42] of the block-structured adaptive mesh refinement technique, i.e., AMROC [37,38,39,40], is introduced to improve the resolution of complex shock structures and reduce the required computational resources. AMROC follows a block refinement strategy by clustering the flagged grids into rectangular boxes of an appropriate size and then generating sub-grids with the same refinement coefficients in the spatial and temporal directions, such that the refinement is recursive from the coarser grids, thus constructing the entire hierarchy of continuous embedded grid patches, see Figure 5.
Unlike other refinement techniques that allow only one parent grid, AMROC considers arbitrary parent/child relationships, and in Figure 5, this generality is represented by the grid G2,2 covering both parents. At each hierarchy level, a separate refinement factor ri can be used, and in this paper, we unify all refinement factors with ri = 2. In AMROC, the grids are stored independently at each hierarchy level, avoiding additional communication overhead and improving parallel performance, and each hierarchy level evolves independently. In this case, the fine grids are free from the excessive constraints of the CFL condition, and the fine grids can evolve in smaller time steps than the coarse grids. Then, the fine grids’ information overwrites the coarse grids that generated it, and the average values of the fine grids replace the values of the coarse grids, which generally results in the loss of important conserved properties. To ensure conservation, a flux correction is required to replace the coarse grid fluxes on the affected side of neighboring grids with the accumulated fine grid fluxes.
Depending on the flow problem to be solved, the computational domain is initially covered with one or more root blocks of the same grid size and resolution. Here, we denote the grid refinement level by l, the root blocks have l = 0, and the maximum refinement level is denoted by lmax. For AMR methods, computational efficiency and accuracy are issues to focus on. The parallel AMR algorithm can improve the computational efficiency, and detailed information about the parallel algorithm of AMROC can be found in [39,40]. The computational efficiency can be measured by the speed-up ratio, which is defined as the ratio between the computation time on a uniform grid and on an AMR mesh of the same resolution at the highest refinement level. Obviously, the speed-up ratio is mainly determined by the size of the AMR mesh used for computation, which is closely related to the refinement strategy. The rigorously derived error estimation is only applicable to scalar equations for the conservation law of the FVM [43]. This paper adopts two common refinement indices, using only density and pressure. The scaled gradients refer to an adaptive refinement criterion along the discontinuity. Taking the two-dimensional case as an example, grid ( i , j ) is refined if one of the following conditions is satisfied:
| ω ( W i + 1 , j ) ω ( W i , j ) | > ε ω , | ω ( W i , j + 1 ) ω ( W i , j ) | > ε ω , | ω ( W i + 1 , j + 1 ) ω ( W i , j ) | > ε ω .
where, in this paper, ω ( W i , j ) represents ρ or p derived from conserved variables W i , j ( t ) at any time. ε ω is the limiting index for scaling gradient for any moment in time, and for different problems, appropriate scaled gradients should be selected. Another adaptive refinement criterion is the heuristic error estimation of local truncation errors in the smooth solution domain by Richardson extrapolation [42,44,45]. The local truncation error of the o-order difference scheme satisfies the following condition:
q ( x , t + Δ t ) H ( Δ t ) ( q ( , t ) ) = C Δ t o + 1 + O ( Δ t o + 2 ) ,
If q is sufficiently smooth, we have for the local error at t + Δ t after two steps with Δ t :
q ( x , t + Δ t ) H 2 ( Δ t ) ( q ( , t Δ t ) ) = 2 C Δ t o + 1 + O ( Δ t o + 2 ) ,
and for the local error at t + Δ t , after one step with 2 Δ t :
q ( x , t + Δ t ) H ( 2 Δ t ) ( q ( , t Δ t ) ) = 2 o + 1 C Δ t o + 1 + O ( Δ t o + 2 ) ,
Subtracting Equation (37) from Equation (38), one obtains the following relation:
H 2 ( Δ t ) ( q ( , t t ) ) H ( 2 Δ t ) ( q ( , t Δ t ) ) = ( 2 o + 1 2 ) C Δ t o + 1 + O ( Δ t o + 2 ) .
which can be employed to approximate the leading-order term C Δ t o + 1 of the local error at t + Δ t . The implementation of a criterion based on Equation (39) requires a discrete solution Q l defined on a grid two times coarser than the grid of level l, where level l represents the finer grid, see Figure 6. A coarse approximation Q ¯ l ( t l + Δ t l ) = H 2 Δ t l Q l ( t l Δ t l ) is obtained by taking one step of 2 Δ t l (green arrow in Figure 6). Then, a second coarse solution Q l ( t l + Δ t l ) = H 2 Δ t l Q l ( t l Δ t l ) is derived by advancing Q l ( t ) by Δ t l (blue arrows in Figure 6). The following is an approximation to the leading-order term of the local error of quantity ω of the grid ( i , j ) .
τ i , j ω : = | ω ( Q ¯ i , j l ( t + Δ t l ) ) ω ( Q i , j l ( t + Δ t l ) ) | 2 o + 1 2 > η ω .
where, in this paper, ω represents ρ or p derived from the coarse approximate solution Q i , j l ( t + Δ t l ) at any time, and η ω is a limiting index of error. If this inequality is satisfied, all four grids below the coarse grid ( i , j ) will be refined.

3. Numerical Validations and Applications

In this section, the proposed AMR-RLBFS is validated and applied to study the classical shock tube problem, the four-wave Riemann problem, and two unsteady three-dimensional compressible flows with complex shock structures. The performances of the LBFS and RLBFS on the adaptive mesh are also investigated.

3.1. Shock Tube Problem

The shock tube problem is a fundamental physical problem to examine the reliability and capability of different numerical schemes, whose exact solutions are available for comparison. The Sod shock tube [46], which consists of a left rarefaction wave, a contact discontinuity, and a right shock wave, is considered in the study. To visualize the variation of the adaptive mesh, we simulated the Sod shock tube problem with a computational domain of [0,1] × [0,0.2]. The outflow boundary condition is applied on the left and right sides, while the slip wall condition is used on top and bottom. A basic mesh resolution of size 200 × 40 (l = 0) with a maximum adaptive level of lmax = 2 is used. The initial conditions are given below.
ρ L = 1.0 , u L = 0.0 , p L = 1.0 ,           0.0 < x < 0.5 ρ R = 0.125 , u R = 0.0 , p R = 0.1 , 0.5 < x < 1.0
Figure 7 shows the numerical results of density, pressure, and velocity at t = 0.25, obtained by the AMR-RLBFS and the AMR-LBFS. Also included in the figure is the theoretical solution. It can be seen that good agreements among all mentioned solutions are achieved, which verifies the reliability of the proposed method. It is also noticed that, with the same computational grids and limiters, the AMR-RLBFS has smaller oscillations around x = 0.49 than the AMR-LBFS. Figure 8 shows the adaptive mesh of the Sod shock tube at t = 0 and t = 0.25, confirming the location of the dramatic changes in physical quantities in Figure 7. And Figure 9 also shows the adaptive mesh variation with time, in which the red triangles represent the total amount of adaptive mesh, and the black line is the fit of these triangles. In addition, the average number of adaptive grids used by the AMR-RLBFS is about 33,456, which is about 26.14% of the uniform grids. Meanwhile, the computation time of the adaptive grid is 71.37 s, while the computation time of the uniform grid is 140.69 s, with a speed-up ratio of 1.97. This indicates that both the required computational resources and consumptions are reduced by the present proposed method.

3.2. Two-Dimensional Four-Wave Riemannian Problem

Two-dimensional Riemann problems are a special class of initial value problems. The study of two-dimensional Riemann problems is important for verifying the capability and accuracy of numerical simulations because very complex phenomena, such as shock reflection, vortex generation, spiral structure, and vortex–shock interaction, exist. To simplify the problem, the current research focuses on a special class of two-dimensional Riemann problems, i.e., each quarter region of the two-dimensional plane is constant, so four initial discontinuities constitute four one-dimensional Riemann problems, and each one-dimensional Riemann problem generates a simple wave, i.e., rarefaction waves (R), contact discontinuities (J), or shock waves (S), and the four simple waves will form a two-dimensional structure near the center point, and this two-dimensional Riemann problem is called a four-wave two-dimensional Riemann problem. For the four-wave two-dimensional Riemann problem, there are many theoretical and numerical research works [47,48,49,50,51]. The construction of the initial values of the four-wave two-dimensional Riemann problem and the meaning of the notation according to the type of the one-dimensional Riemann problem on the boundary can be seen in detail from the appendix of [51].
In this section, to verify the performance and the accuracy of the AMR-RLBFS for solving Riemann problems, as well as the improvement in the AMR-RLBFS over AMR-LBFS algorithm, two four-wave two-dimensional Riemann problems are considered. The computational domain is [0,1] × [0,1] with a base mesh of size 200 × 200 (l = 0). A maximum refinement level of lmax = 3 and γ = 1.4 are used for the simulation.

3.2.1. Interaction of Rarefaction Waves [ R 12 + R 23 R 34 + R 41 ]

The initial values of this four-wave two-dimensional Riemann problem are given below, and the interaction of the rarefaction waves produces rarefaction waves at all four initial discontinuities.
ρ 1 = 1 . 0 , u 1 = 0.0 , v 1 = 0.0 , p 1 = 1.0 ,                                         0.5 < x < 1.0 , 0.5 < y < 1.0 , ρ 2 = 0 . 5197 , u 2 = 0.7259 , v 2 = 0.0 , p 2 = 0.4 ,           0.0 < x < 0.5 , 0.5 < y < 1.0 , ρ 3 = 1 . 0 , u 3 = 0.7259 , v 3 = 0.7259 , p 3 = 1.0 ,     0.0 < x < 0.5 , 0.0 < y < 0.5 , ρ 4 = 0 . 5197 , u 4 = 0.0 , v 4 = 0.7259 , p 4 = 0.4 ,           0.5 < x < 1.0 , 0.0 < y < 0.5.
Figure 10 shows the comparison of density contours of the interaction of rarefaction waves at t = 0.2. As can be seen, the results are in good agreement with [49]. It may be highlighted that the AMR-RLBFS eliminates the oscillating effects caused by the interaction of rarefaction waves near the center and improves the accuracy. Figure 11a further shows the adaptive mesh at the same time, and Figure 11b presents the overall grid size varying with time. The average number of grids for the adaptive mesh is about 351,984, which is about 15.31% of the uniform grid with the same resolution. The computation time of the adaptive mesh by the present AMR-RLBFS is 0.42 h, while that of the uniform grid is 1.56 h, resulting in a speed-up ratio of 3.71. This indicates that the proposed method is able to not only improve the computational efficiency, but also effectively capture rarefaction waves without generating unphysical oscillations.

3.2.2. Interaction of Contact Discontinuities and Shock Waves [ S 12 + J 23 J 34 + S 41 ]

Contact discontinuities and shock waves are further considered, and the initial conditions of this flow problem are given as follows:
ρ 1 = 0 . 5313 , u 1 = 0.0 , v 1 = 0.0 , p 1 = 0.4 ,           0.5 < x < 1.0 , 0.5 < y < 1.0 , ρ 2 = 1 . 0 , u 2 = 0.7276 , v 2 = 0.0 , p 2 = 1.0 ,           0.0 < x < 0.5 , 0.5 < y < 1.0 , ρ 3 = 0 . 8 , u 3 = 0.0 , v 3 = 0.0 , p 3 = 1.0 ,                       0.0 < x < 0.5 , 0.0 < y < 0.5 , ρ 4 = 1 . 0 , u 4 = 0.0 , v 4 = 0.7276 , p 4 = 1.0 ,           0.5 < x < 1.0 , 0.0 < y < 0.5.
The comparison of the density contour lines for the interaction of rarefaction waves and contact discontinuities is shown in Figure 12. As shown in Figure 12, the results of the AMR-LBFS are basically consistent with [49], and the AMR-LBFS captures many small-scale vortex structures at the interface, and for the resolution of small-scale vortex structures at the interface, the AMR-RLBFS still shows a higher resolution, which improves the precision and accuracy of the numerical results. The adaptive mesh for the interaction of rarefaction waves and contact discontinuities at t = 0.25, and the adaptive mesh change with time are shown in Figure 13. Based on the parallel computation, the average number of grids for the adaptive mesh is about 276,133, which is about 10.79% of the uniform grid. Meanwhile, the computation time of the adaptive mesh is 0.35 h, while that of the uniform mesh is 1.55 h, with a speed-up ratio of 4.43. The reduction in the computational grid and the improvement in the computational efficiency of the AMR-RLBFS are more obvious in the two-dimensional Riemann problem compared to the shock tube problem.

3.3. Three-Dimensional Problems

After studying the various two-dimensional Riemann problems mentioned above, the potential of the AMR-RLBFS has been demonstrated. Therefore, this section further presents numerical simulations of some three-dimensional compressible problems using the AMR-RLBFS.

3.3.1. Explosion in a Box

The explosion in a box is described as a spherical shock propagating in a closed box, where the reflected shock waves have complex interactions. The computational domain, [0,1] × [0,1] × [0,1], is schematically shown in Figure 14, in which all six faces are reflecting walls with the following values: center of sphere: (0.4, 0.4, 0.4); radius of sphere: 0.3. The number of the base mesh is 30 × 30 × 30 (l = 0), with a maximum adaptive level of lmax = 3, γ = 1.4. The adaptive mesh is used to improve the accuracy and efficiency of the RLBFS algorithm, and the initial conditions are as follows:
( ρ , u , v , w , p ) = { ( 5 , 0 , 0 , 0 , 5 )           i f   ( x 0.4 ) 2 + ( y 0.4 ) 2 + ( z 0.4 ) 2 0.3 , ( 1 , 0 , 0 , 0 , 1 )           e l s e .
Figure 15 shows the density contours on the plane z = 0.4 for the explosion in a box at t = 0.5. The present results are obtained by the AMR-RLBFS using both two and three refinement levels. Also included in this figure are the results of [21,52]. It can be seen from Figure 15 that the density contours obtained by the AMR-RLBFS with two refinement levels have a higher resolution of complex features than the results in [21,52]. Furthermore, the results obtained by the AMR-RLBFS with three refinement levels show a more accurate identification of the fine flow structure and shock waves. Comparison of the isosurface of the density is further given in Figure 16, demonstrating good consistency with the results of [52]. These comparisons indicate that the AMR-RLBFS proposed in this paper is able to simulate the three-dimensional compressible flow with complex shock structures on adaptive meshes. Figure 17 illustrates the block-structured adaptive mesh at z = 0.4 from t = 0 to t = 0.5. It can be seen that the mesh near the shock wave is refined to improve the ability to capture the shock wave. Figure 18 shows the mesh size variation over time. The average number of mesh size is about 5,757,220, which is about 41.65% of the uniform grids with the same finest resolution. The computation time on this mesh by the AMR-RLBFS is 0.48 h, while the computation time on the uniform grid integration is 0.83 h, resulting in a speed-up ratio of 1.73.

3.3.2. Vorticity Generated by a Shock

The vorticity generated by a shock [53] is a challenging flow problem by setting different densities and pressures in two cylindrical regions in a rectangular domain as shown in Figure 19. This problem is further studied by the AMR-RLBFS. A cylindrical region along the z-axis generates a cylindrical shock wave due to the large pressure difference, while another cylindrical region of low density, parallel to the y-axis, is hit by the cylindrical shock wave and generates a large number of vortices. The radius of both cylinders is r = 0.2. In the present study, the computational domain is set as [0,1.5] × [0,1] × [0,0.5], and the base mesh size is taken as 45 × 30 × 15 (l = 0). The planes x = 0, y = 0, and z = 0 are symmetry surfaces and outflow conditions that are applied on the other three surfaces. A maximum adaptive level is lmax = 3. The initial conditions are as follows:
( ρ , u , v , w , p ) = { ( 1 , 0 , 0 , 0 , 10 )         i f x 2 + y 2 0.2 , ( 0 . 1 , 0 , 0 , 0 , 1 )     i f   ( x 0.4 ) 2 + z 2 0.2 , ( 1 , 0 , 0 , 0 , 1 )             e l s e .
Figure 20 shows the magnitude of the density gradient of the vorticity generated by a shock by the AMR-RLBFS at t = 0.1–0.5. It can be seen that the incident shock wave at t = 0.1 wraps around part of the low-density cylindrical region, which begins to collapse. At t = 0.3, the passing shock wave causes the low-density cylindrical region to wind into two vortex spirals, and the contact discontinuity generated by the high-pressure region is also swept up in this vortex motion. The interaction produces a triple-shock structure with distinct vortices visible at t = 0.4. Vortex spirals form on the envelope of the vortex spirals at t = 0.5, which is a purely three-dimensional feature and creates a cycle of vortex spirals in the y-direction that will stretch, move, and eventually break up to form a complex region. Figure 21 shows the detailed information of the density and pressure variations with time on the x-axis. The high-pressure cylindrical region on the left collapses to form a shock wave at nearly 0.1, which starts to impinge on the low-density cylindrical region, and then the complex shock structures formed around 0.15 reach the peak of density and pressure. And the complex shock structures begin to propagate to the right and gradually break up and escape, accompanied by dissipation of the intensity of the left shock wave. Due to the turbulence-like behavior, the symmetry assumption is incorrect, the details of the vortex dynamics depend on the limiter used, and the results for this region can only be viewed qualitatively.
Figure 22 further shows the contours of the magnitude of the density gradient and block-structured adaptive mesh on the plane y = 0 at different times. It can be seen that, as the vortex moves, the mesh around it is also refined dynamically in order to obtain a complex flow structure in the flow field. Figure 23 shows the mesh size over time. The average adaptive mesh is about 1,889,829 which is about 18.23% of the uniform grid with the same resolution. The computation time on the adaptive mesh is 0.72 h, while the computation time of the uniform grid is 2.73 h, leading to a speed-up ratio of 3.79. This demonstrates the improvement in the computational efficiency of the AMR-RLBFS.

4. Conclusions

In this paper, a block-structured AMR-RLBFS method has been proposed and validated by simulating two and three-dimensional unsteady compressible flows with complex shock structures. The AMR-RLBFS applies the flow field solver RLBFS locally on each block of the adaptive mesh and refines the computational grids dynamically. With the advantages the block-structured AMR technique, the present method is able to obtain solutions on feature-specified adaptive meshes with higher numerical accuracy and relatively less computational resources.
By simulating the shock tube problem and the four-wave two-dimensional Riemann problem, it is shown that the AMR-RLBFS successfully captures rarefaction waves, shock waves, and contact discontinuities and effectively resolves small-scale vortex structures on adaptive meshes. The effects caused by shock instability are removed as well. Comparisons also highlight the superior accuracy and stability of the AMR-RLBFS over the AMR-LBFS. The capability of the proposed method in solving three-dimensional problems has also been examined by simulating the explosion in a box and vorticity generated by a shock. It is shown again that the results obtained by the AMR-RLBFS are well structured and clear and in good agreement with the literature results, with sufficient precision and accuracy. Numerical results also show acceleration of the simulation with a max speed-up ratio up to 4.43 for all cases in this work. All these observations demonstrate of the potential of the AMR-RLBFS in simulating high Mach number compressible flows with strong shock waves, and therefore it can be used as a promising numerical method to continue its optimal development and then be useful in practical aerospace applications.

Author Contributions

Methodology, X.H., J.C. and Y.W.; Software, X.H. and J.Z; Validation, X.H., L.W. and Y.W.; Data curation, X.H., L.W. and J.C.; Visualization, X.H. and J.Z.; Writing—original draft preparation, X.H. and Y.W.; Writing—review and editing, L.W. and Y.W.; All authors have read and agreed to the published version of the manuscript.

Funding

This work is supported by the Scientific Research Program (Grant No. 2023-XT3S-JSFW-50002), the National Natural Science Foundation of China (Grant No. 11902153, 12272178), the Research Fund of State Key Laboratory of Mechanics and Control for Aerospace Structures (Grant No. MCMS-I-0122G01), Aeronautical Science Foundation of China (Grant No. 20220012052004), Key laboratory of Computational Aerodynamics, AVIC Aerodynamics Research Institute and the Spring Sunshine Program of the Ministry of Education of China.

Data Availability Statement

Data will be made available on request.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. McDonald, P.W. The computation of transonic flow through two-dimensional gas turbine cascades. In Proceedings of the ASME 1971 International Gas Turbine Conference and Products Show, Houston, TX, USA, 28 March–1 April 1971. [Google Scholar] [CrossRef]
  2. Roe, P.L. Approximate Riemann solvers, parameter vectors, and difference schemes. J. Comput. Phys. 1997, 135, 250–258. [Google Scholar] [CrossRef]
  3. Kitamura, K.; Shima, E.; Nakamura, Y.; Roe, P.L. Evaluation of Euler fluxes for hypersonic heating computations. AIAA J. 2010, 48, 763–776. [Google Scholar] [CrossRef]
  4. Quirk, J.J. A contribution to the great Riemann solver debate. In Upwind and High-Resolution Schemes; Yousuff, H.M., Leer, B., Rosendale, J., Eds.; Springer: Heidelberg/Berlin, Germany, 1997; pp. 550–569. [Google Scholar] [CrossRef]
  5. Quirk, J.J. A contribution to the great Riemann solver debate. Int. J. Numer. Methods Fluids 1994, 18, 555–574. [Google Scholar] [CrossRef]
  6. Kermani, M.; Plett, E. Modified entropy correction formula for the Roe Scheme. In Proceedings of the 39th Aerospace Sciences Meeting and Exhibit, Reno, NV, USA, 8–11 January 2001. [Google Scholar] [CrossRef]
  7. Kim, S.-S.; Kim, C.; Rho, O.H.; Hong, S.-K. Cures for the shock instability: Development of a shock-stable Roe Scheme. J. Comput. Phys. 2003, 185, 342–374. [Google Scholar] [CrossRef]
  8. Chen, S.-S.; Yan, C.; Lin, B.-X.; Li, Y.-S. A new robust carbuncle-free roe scheme for strong shock. J. Sci. Comput. 2018, 77, 1250–1277. [Google Scholar] [CrossRef]
  9. Fleischmann, N.; Adami, S.; Hu, X.Y.; Adams, N.A. A low dissipation method to cure the grid-aligned shock instability. J. Comput. Phys. 2020, 401, 109004. [Google Scholar] [CrossRef]
  10. Ren, X.-D.; Gu, C.-W.; Li, X.-S. Role of the momentum interpolation mechanism of the Roe scheme in shock instability. Int. J. Numer. Methods Fluids 2015, 84, 335–351. [Google Scholar] [CrossRef]
  11. Ren, Y.-X. A robust shock-capturing scheme based on rotated Riemann solvers. Comput. Fluids 2003, 32, 1379–1403. [Google Scholar] [CrossRef]
  12. Nishikawa, H.; Kitamura, K. Very simple, carbuncle-free, boundary-layer-resolving, rotated-hybrid Riemann solvers. J. Comput. Phys. 2008, 227, 2560–2581. [Google Scholar] [CrossRef]
  13. Benzi, R.; Succi, S.; Vergassola, M. The lattice Boltzmann equation: Theory and applications. Phys. Rep. 1992, 222, 145–197. [Google Scholar] [CrossRef]
  14. Guo, Z.; Shu, C. Lattice Boltzmann method and its applications in engineering. In Advances in Computational Fluid Dynamics; World Scientific: Singapore, 2013. [Google Scholar] [CrossRef]
  15. Hu, S.; Yan, G.; Shi, W. A lattice Boltzmann model for compressible perfect gas. Acta Mech. Sin. 1997, 13, 218–226. [Google Scholar]
  16. Yan, G.; Chen, Y.; Hu, S. Simple lattice Boltzmann model for simulating flows with shock wave. Phys. Rev. E 1999, 59, 454–459. [Google Scholar] [CrossRef]
  17. Kataoka, T.; Tsutahara, M. Lattice Boltzmann method for the compressible Euler equations. Phys. Rev. E 2004, 69, 056702. [Google Scholar] [CrossRef] [PubMed]
  18. Sun, C. Lattice-Boltzmann models for high speed flows. Phys. Rev. E 1998, 58, 7283–7287. [Google Scholar] [CrossRef]
  19. Sun, C. Simulations of compressible flows with strong shocks by an adaptive lattice Boltzmann model. J. Comput. Phys. 2000, 161, 70–84. [Google Scholar] [CrossRef]
  20. Sun, C.; Hsu, A.T. Three-dimensional lattice Boltzmann model for compressible flows. Phys. Rev. E 2003, 68, 016303. [Google Scholar] [CrossRef] [PubMed]
  21. Li, Q.; He, Y.L.; Wang, Y.; Tang, G.H. Three-dimensional non-free-parameter lattice-Boltzmann model and its application to inviscid compressible flows. Phys. Lett. A 2009, 373, 2101–2108. [Google Scholar] [CrossRef]
  22. Zhong, C.; Li, K.; Sun, J.; Zhuo, C. Compressible flow simulation around airfoil based on lattice Boltzmann method. Trans. Nanjing Univ. Aeronaut. Astronaut. 2009, 26, 206–211. [Google Scholar]
  23. Qu, K.; Shu, C.; Chew, Y.T. Alternative method to construct equilibrium distribution functions in lattice-Boltzmann method simulation of inviscid compressible flows at high Mach number. Phys. Rev. E 2007, 75, 036706. [Google Scholar] [CrossRef] [PubMed]
  24. Qu, K.; Shu, C.; Chew, Y.T. Simulation of shock-wave propagation with finite volume lattice Boltzmann method. Int. J. Mod. Phys. C 2007, 18, 447–454. [Google Scholar] [CrossRef]
  25. Ji, C.Z.; Shu, C.; Zhao, N. A lattice Boltzmann method-based flux solver and its application to solve shock tube problem. Mod. Phys. Lett. B 2009, 23, 313–316. [Google Scholar] [CrossRef]
  26. Wang, Y.; Yang, L.; Shu, C. From lattice Boltzmann method to lattice Boltzmann flux solver. Entropy 2015, 17, 7713–7735. [Google Scholar] [CrossRef]
  27. Yang, L.M.; Shu, C.; Wu, J. Development and comparative studies of three non-free parameter lattice Boltzmann models for simulation of compressible flows. Adv. Appl. Math. Mech. 2012, 4, 454–472. [Google Scholar] [CrossRef]
  28. Yang, L.M.; Shu, C.; Wu, J. A moment conservation-based non-free parameter compressible lattice Boltzmann model and its application for Flux Evaluation at cell interface. Comput. Fluids 2013, 79, 190–199. [Google Scholar] [CrossRef]
  29. Shu, C.; Wang, Y.; Yang, L.M.; Wu, J. Lattice Boltzmann flux solver: An efficient approach for numerical simulation of fluid flows. Trans. Nanjing Univ. Aeronaut. Astronaut. 2014, 31, 1–15. [Google Scholar]
  30. Yang, L.M.; Shu, C.; Wu, J. A hybrid lattice Boltzmann flux solver for simulation of viscous compressible flows. Adv. Appl. Math. Mech. 2016, 8, 887–910. [Google Scholar] [CrossRef]
  31. Chen, J.; Yang, D.; Chen, Q.; Sun, J.; Wang, Y. A rotated lattice boltzmann flux solver with improved stability for the simulation of compressible flows with intense shock waves at high Mach number. Comput. Math. Appl. 2023, 132, 18–31. [Google Scholar] [CrossRef]
  32. Chen, J.; Wang, Y.; Yang, D.; Chen, Q.; Sun, J. Development of three-dimensional rotated lattice boltzmann flux solver for the simulation of high-speed compressible flows. Comput. Fluids 2023, 265, 105992. [Google Scholar] [CrossRef]
  33. Hasert, M.; Masilamani, K.; Zimny, S.; Klimach, H.; Qi, J.; Bernsdorf, J.; Roller, S. Complex fluid simulations with the parallel tree-based Lattice Boltzmann solver Musubi. J. Comput. Sci. 2014, 5, 784–794. [Google Scholar] [CrossRef]
  34. Burstedde, C.; Johannes, H. Coarse mesh partitioning for tree-based Amr. SIAM J. Sci. Comput. 2017, 39, C364–C392. [Google Scholar] [CrossRef]
  35. Schornbaum, F.; Rüde, U. Extreme-scale block-structured adaptive mesh refinement. SIAM J. Sci. Comput. 2017, 40, 06829. [Google Scholar] [CrossRef]
  36. Zhang, W.; Almgren, A.; Beckner, V.; Bell, J.; Blaschke, J.; Chan, C.; Day, M.S.; Friesen, B.; Gott, K.; Graves, D.T.; et al. AMReX: A framework for block-structured adaptive mesh refinement. J. Open Source Softw. 2019, 4, 1370. [Google Scholar] [CrossRef]
  37. Deiterding, R. AMROC–Block-Structured Adaptive Mesh Refinement in Object-Oriented C++. Available online: http://amroc.sourceforge.net (accessed on 11 September 2023).
  38. Deiterding, R. Construction and application of an AMR algorithm for distributed memory computers. In Adaptive Mesh Refinement-Theory and Applications; Springer: Berlin/Heidelberg, Germany, 2005; pp. 361–372. [Google Scholar] [CrossRef]
  39. Deiterding, R. Block-structured adaptive mesh refinement-theory, implementation and application. ESAIM Proc. 2011, 34, 97–150. [Google Scholar] [CrossRef]
  40. Deiterding, R. Parallel Adaptive Simulation of Multi-Dimensional Detonation Structures. Ph.D. Thesis, Brandenburgische Technische Universität, Cottbus, Germany, 2003. [Google Scholar]
  41. Van, L.B. Flux-vector splitting for the Euler equations. In Proceedings of the Eighth International Conference on Numerical Methods in Fluid Dynamics, St. Louis, MO, USA, 7–11 June 1982; pp. 507–512. [Google Scholar] [CrossRef]
  42. Berger, M.J.; Colella, P. Local adaptive mesh refinement for shock hydrodynamics. J. Comput. Phys. 1989, 82, 64–84. [Google Scholar] [CrossRef]
  43. Kröner, D.; Ohlberger, M. A posteriori error estimates for upwind finite volume schemes for nonlinear conservation laws in Multi Dimensions. Math. Comput. 1999, 69, 25–40. [Google Scholar] [CrossRef]
  44. Berger, M.J. Adaptive Mesh Refinement for Hyperbolic Differential Equations. Ph.D. Thesis, Stanford University, Stanford, CA, USA, August 1982. [Google Scholar]
  45. Berger, M.J.; Oliger, J. Adaptive mesh refinement for hyperbolic partial differential equations. J. Comput. Phys. 1984, 53, 484–512. [Google Scholar] [CrossRef]
  46. Sod, G.A. A survey of several finite difference methods for systems of Nonlinear hyperbolic conservation laws. J. Comput. Phys. 1978, 27, 1–31. [Google Scholar] [CrossRef]
  47. Zhang, T.; Zheng, Y. Conjecture on the structure of solutions of the Riemann problem for two-dimensional gas dynamics systems. SIAM J. Math. Anal. 1990, 21, 593–630. [Google Scholar] [CrossRef]
  48. Schulz-Rinne, C.W.; Collins, J.P.; Glaz, H.M. Numerical solution of the Riemann problem for two-dimensional gas dynamics. SIAM J. Sci. Comput. 1993, 14, 1394–1414. [Google Scholar] [CrossRef]
  49. Lax, P.D.; Liu, X.-D. Solution of two-dimensional Riemann problems of gas dynamics by positive schemes. SIAM J. Comput. 1998, 19, 319–340. [Google Scholar] [CrossRef]
  50. Kurganov, A.; Tadmor, E. Solution of two-dimensional Riemann problems for gas dynamics without Riemann problem solvers. Numer. Methods Partial Differ. Equ. 2002, 18, 584–608. [Google Scholar] [CrossRef]
  51. Han, E.; Li, J.Q.; Tang, H.Z. Accuracy of the adaptive GRP scheme and the simulation of 2-D Riemann problem for compressible Euler equations. Commun. Comput. Phys. 2011, 10, 577–609. [Google Scholar] [CrossRef]
  52. Deiterding, R. Available online: http://amroc.sourceforge.net/examples/euler/3d/html/box3d_n.htm (accessed on 11 September 2023).
  53. Langseth, J.O.; Leveque, R.J. A wave propagation method for three-dimensional hyperbolic conservation laws. J. Comput. Phys. 2000, 165, 126–166. [Google Scholar] [CrossRef]
Figure 1. Discrete lattice velocity distribution for D1Q4 model.
Figure 1. Discrete lattice velocity distribution for D1Q4 model.
Symmetry 15 01909 g001
Figure 2. Applying 1D model into 2D cases.
Figure 2. Applying 1D model into 2D cases.
Symmetry 15 01909 g002
Figure 3. Streaming and collision process of the D1Q4 model at the cell interface.
Figure 3. Streaming and collision process of the D1Q4 model at the cell interface.
Symmetry 15 01909 g003
Figure 4. Distribution of the components of normal vector at the cell interface.
Figure 4. Distribution of the components of normal vector at the cell interface.
Symmetry 15 01909 g004
Figure 5. A hierarchy of rectangular sub-grid of AMROC.
Figure 5. A hierarchy of rectangular sub-grid of AMROC.
Symmetry 15 01909 g005
Figure 6. Richardson extrapolation to estimate the error on a refinement sub-grid.
Figure 6. Richardson extrapolation to estimate the error on a refinement sub-grid.
Symmetry 15 01909 g006
Figure 7. (a) Density, (b) velocity, and (c) pressure of the AMR-RLBF and AMR-LBFS, as well as the exact solution at t = 0.25.
Figure 7. (a) Density, (b) velocity, and (c) pressure of the AMR-RLBF and AMR-LBFS, as well as the exact solution at t = 0.25.
Symmetry 15 01909 g007aSymmetry 15 01909 g007b
Figure 8. Adaptive mesh for the Sod shock tube ((a) t = 0; (b) t = 0.25).
Figure 8. Adaptive mesh for the Sod shock tube ((a) t = 0; (b) t = 0.25).
Symmetry 15 01909 g008
Figure 9. Adaptive mesh over time.
Figure 9. Adaptive mesh over time.
Symmetry 15 01909 g009
Figure 10. Density contour lines of (a) AMR-RLBFS, (b) AMR-LBFS, and (c) result in [49] at t = 0.2.
Figure 10. Density contour lines of (a) AMR-RLBFS, (b) AMR-LBFS, and (c) result in [49] at t = 0.2.
Symmetry 15 01909 g010
Figure 11. (a) Adaptive mesh for interaction of rarefaction waves at t = 0.2; (b) the overall grid size varying with time.
Figure 11. (a) Adaptive mesh for interaction of rarefaction waves at t = 0.2; (b) the overall grid size varying with time.
Symmetry 15 01909 g011
Figure 12. Density contour lines of (a) AMR-RLBFS, (b) AMR-LBFS, and (c) result in [49] at t = 0.25.
Figure 12. Density contour lines of (a) AMR-RLBFS, (b) AMR-LBFS, and (c) result in [49] at t = 0.25.
Symmetry 15 01909 g012
Figure 13. (a) Adaptive mesh for interaction of rarefaction waves and contact discontinuities at t = 0.25 and (b) the adaptive mesh variation with time.
Figure 13. (a) Adaptive mesh for interaction of rarefaction waves and contact discontinuities at t = 0.25 and (b) the adaptive mesh variation with time.
Symmetry 15 01909 g013
Figure 14. Schematic diagram of the explosion in a box.
Figure 14. Schematic diagram of the explosion in a box.
Symmetry 15 01909 g014
Figure 15. Density contour lines (a) AMR-RLBFS with 2 additional levels of refinement, (b) AMR-RLBFS with 3 additional levels of refinement, (c) result in [52], and (d) result in [21] for z = 0.4 at t = 0.5.
Figure 15. Density contour lines (a) AMR-RLBFS with 2 additional levels of refinement, (b) AMR-RLBFS with 3 additional levels of refinement, (c) result in [52], and (d) result in [21] for z = 0.4 at t = 0.5.
Symmetry 15 01909 g015
Figure 16. Density contour surface (ρ = 1.8). (a) AMR-RLBFS with t = 0.375, (b) result in [52] with t = 0.375, (c) AMR-RLBFS with t = 0.5. and (d) result in [52] with t = 0.5.
Figure 16. Density contour surface (ρ = 1.8). (a) AMR-RLBFS with t = 0.375, (b) result in [52] with t = 0.375, (c) AMR-RLBFS with t = 0.5. and (d) result in [52] with t = 0.5.
Symmetry 15 01909 g016aSymmetry 15 01909 g016b
Figure 17. Block-structured adaptive mesh for z = 0.4 at (a) t = 0.1, (b) t = 0.2, (c) t = 0.4, and (d) t = 0.5.
Figure 17. Block-structured adaptive mesh for z = 0.4 at (a) t = 0.1, (b) t = 0.2, (c) t = 0.4, and (d) t = 0.5.
Symmetry 15 01909 g017
Figure 18. Adaptive mesh over time.
Figure 18. Adaptive mesh over time.
Symmetry 15 01909 g018
Figure 19. Structure of the vorticity generated by a shock.
Figure 19. Structure of the vorticity generated by a shock.
Symmetry 15 01909 g019
Figure 20. Magnitude of density gradient ( | ρ | ) at (a) t = 0.1, (b) t = 0.3, (c) t = 0.4, and (d) t = 0.5.
Figure 20. Magnitude of density gradient ( | ρ | ) at (a) t = 0.1, (b) t = 0.3, (c) t = 0.4, and (d) t = 0.5.
Symmetry 15 01909 g020
Figure 21. Variation of (a) density and (b) pressure on the line y = z = 0.
Figure 21. Variation of (a) density and (b) pressure on the line y = z = 0.
Symmetry 15 01909 g021
Figure 22. The density contours for y = 0 at (a) t = 0.1, (c) t = 0.3, (e) t = 0.4, and (g) t = 0.5 and block-structured adaptive mesh for y = 0 at (b) t = 0.1, (d) t = 0.3, (f) t = 0.4, and (h) t = 0.5.
Figure 22. The density contours for y = 0 at (a) t = 0.1, (c) t = 0.3, (e) t = 0.4, and (g) t = 0.5 and block-structured adaptive mesh for y = 0 at (b) t = 0.1, (d) t = 0.3, (f) t = 0.4, and (h) t = 0.5.
Symmetry 15 01909 g022
Figure 23. Adaptive mesh over time.
Figure 23. Adaptive mesh over time.
Symmetry 15 01909 g023
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Huang, X.; Chen, J.; Zhang, J.; Wang, L.; Wang, Y. An Adaptive Mesh Refinement–Rotated Lattice Boltzmann Flux Solver for Numerical Simulation of Two and Three-Dimensional Compressible Flows with Complex Shock Structures. Symmetry 2023, 15, 1909. https://doi.org/10.3390/sym15101909

AMA Style

Huang X, Chen J, Zhang J, Wang L, Wang Y. An Adaptive Mesh Refinement–Rotated Lattice Boltzmann Flux Solver for Numerical Simulation of Two and Three-Dimensional Compressible Flows with Complex Shock Structures. Symmetry. 2023; 15(10):1909. https://doi.org/10.3390/sym15101909

Chicago/Turabian Style

Huang, Xiaoyingjie, Jiabao Chen, Jun Zhang, Long Wang, and Yan Wang. 2023. "An Adaptive Mesh Refinement–Rotated Lattice Boltzmann Flux Solver for Numerical Simulation of Two and Three-Dimensional Compressible Flows with Complex Shock Structures" Symmetry 15, no. 10: 1909. https://doi.org/10.3390/sym15101909

APA Style

Huang, X., Chen, J., Zhang, J., Wang, L., & Wang, Y. (2023). An Adaptive Mesh Refinement–Rotated Lattice Boltzmann Flux Solver for Numerical Simulation of Two and Three-Dimensional Compressible Flows with Complex Shock Structures. Symmetry, 15(10), 1909. https://doi.org/10.3390/sym15101909

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop