Next Article in Journal
Bayesian Non-Parametric Inference for Multivariate Peaks-over-Threshold Models
Previous Article in Journal
Dynamical Tunneling in More than Two Degrees of Freedom
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Improvement of Z-Weighted Function Based on Fifth-Order Nonlinear Multi-Order Weighted Method for Shock Capturing of Hyperbolic Conservation Laws

1
Computational Aerodynamics Institute, China Aerodynamics Research and Development Center, Mianyang 621000, China
2
State Key Laboratory of Aerodynamics, China Aerodynamics Research and Development Center, Mianyang 621000, China
*
Author to whom correspondence should be addressed.
Entropy 2024, 26(4), 334; https://doi.org/10.3390/e26040334
Submission received: 4 March 2024 / Revised: 2 April 2024 / Accepted: 11 April 2024 / Published: 14 April 2024

Abstract

:
Based on a 5-point stencil and three 3-point stencils, a nonlinear multi-order weighted method adaptive to 5-3-3-3 stencils for shock capturing is presented in this paper. The form of the weighting function is the same as JS (Jiang–Shu) weighting; however, the smoothness indicator of the 5-point stencil adopts a special design with a higher-order leading term similar to the τ in Z weighting. The design maintains that the nonlinear weights satisfy sufficient conditions for the scheme to avoid degradation even near extreme points. By adjusting the linear weights to a specific value and using the τ in Z weighting, the method can be degraded to Z weighting. Analysis of linear weights shows that they do not affect the accuracy in the smooth region, and they can also adjust the resolution and discontinuity-capturing capability. Numerical tests of different hyperbolic conservation laws are conducted to test the performance of the newly designed nonlinear weights based on the weighted compact nonlinear scheme. The numerical results show that there are no obvious oscillations near the discontinuity, and the resolution of both the discontinuity and smooth regions is better than that of Z weights.

1. Introduction

Low-order schemes have been widely adopted to solve hyperbolic equations to avoid non-physical oscillations near discontinuities [1]. However, the relatively large dispersion and dissipation errors of low-order schemes will smear out a lot of flow details in smooth regions [2], which has promoted the development of high-order nonlinear schemes. Representative achievements of high-order nonlinear schemes include ENO (essentially non-oscillatory) [3], WENO (weighted ENO) [4], TENO (targeted ENO) [5], CNS (compact nonlinear scheme) [6], WCNS (weighted CNS) [7], TCNS (targeted CNS) [8], etc. Nonlinear weighting has played an important role in developing some of these schemes, which provide largely improved scheme accuracy and computational efficiency.
The research on nonlinear weighted schemes has lasted for nearly 30 years. Many kinds of nonlinear weighting functions based on the WENO scheme have been proposed for better accuracy in the smooth region and better non-oscillatory properties near discontinuities. They mainly focus on improving the three main components of a nonlinear weighting scheme, which are the candidate interpolation choice, smoothness indicator, and nonlinear weighting function. Research focusing on improving candidate interpolation choices includes the bandwidth optimization of Martin et al. [9] and the adaptive central-upwind weighted scheme of Hu et al. [10]. Meanwhile, Ha [11] modified the calculation of smoothness indicators, the special contribution of which lies in the parameter that adjusts the contribution of the first-order difference and the second-order difference to the smoothness indicators. Henrick [12] improved the relationship between the smoothness indicator and the nonlinear weight function by introducing an extra mapping function. Borges [13] reconstructed the smoothness indicators of each sub-stencil by introducing a higher-order smoothness indicator, thereby altering the expression form of the weight function. This approach has subsequently been extensively studied and applied by numerous researchers. The review papers [14,15,16] give a relatively comprehensive overview of the development of the WENO schemes.
Another branch of nonlinear weighted schemes is the weighted compact nonlinear scheme (WCNS) [7,17,18,19], which is the scheme the current research is based on. It was summarized to have a series of advantages over the WENO schemes [2]. A key property that distinguishes WCNS from WENO is that it has some advantages in the simulation of complex geometries [20] because of satisfying the geometric conservation law [21,22,23,24]. Note that WCNS and WENO share similar nonlinear weighting processes; therefore, nonlinear weights for one of them can be easily generalized to another.
The improvements in the weighting functions share a common goal, which is to maintain accuracy in smooth regions and capture discontinuities without introducing obvious oscillations. After the proposal of the original fifth-order WENO-JS [25] scheme, an issue of order reduction near extreme points was observed. As a result, several researchers have made a series of modifications [9,10,11,12,13,26] to further improve the performance of the weighting functions. Among these improved weighting functions, Zhu et al. [27] proposed the WENO-ZQ scheme by adopting sub-stencils of different sizes, which is different from the WENO-JS scheme using same-size sub-stencils. The sub-stencils of WENO-ZQ consist of one 5-point sub-stencil along with two upwind and central 2-point sub-stencils, which is represented by the notation (5-2-2) for simplicity. The WENO-ZQ scheme can achieve optimal order even at extreme points, but it still exhibits non-physical oscillations near strong discontinuities. Subsequently, the WENO-MR (5-3-1) scheme [28,29] was proposed based on the combination of (5-3-1) sub-stencils, which reduced non-physical oscillations near discontinuities and enhanced robustness. However, it is important to note that the introduction of the first-order sub-stencil may potentially result in decreased resolution. Zhang [30] applied a similar strategy of [28] to WCNS, resulting in the WCNS-MR (5-3-1) scheme, which exhibits better resolution in smooth regions compared to the WENO-MR (5-3-1) scheme. However, there are still significant non-physical oscillations near strong discontinuities. Wang [31] further improved the efficiency of the WCNS-MR scheme. In the above research, except for the 5-point sub-stencil, the interpolation accuracy of the remaining sub-stencils is very low. To ensure accuracy, not only will the design complexity of the nonlinear weight function increase, but the linear weight of the 5-point stencil in actual examples also needs to be close to 1. This linear weight deteriorates the ability to capture discontinuities. Since its proposal, the Z function has been widely used and provides good stability and resolution near discontinuities. However, as the complexity of the problem increases, it is necessary to obtain more flow details in smooth regions, and the resolution of Z weights can no longer meet practical needs.
The goal of this article is to propose a new nonlinear weighted format based on the WCNS-JS and 5-3-3-3 stencils. Its characteristic feature is that the order of smoothness indicator on the stencil is related to the highest interpolation accuracy of the stencil, which maintains that nonlinear weights meet sufficient conditions to ensure that the scheme does not degrade in accuracy near extreme points. The smoothness indicator of the 5-point sub-stencil is obtained by combining the smoothness indicators of two 3-point sub-stencils and with an order higher than that of the 3-point sub-stencil. In addition, the ratio of linear weights on the three 3-point stencils meets the requirements of convex combination to fifth-order accuracy. A theoretical derivation and numerical tests are conducted to compare the resolution of the weighted method with Z nonlinear weights. These tests demonstrate the new weighted method’s ability to achieve the desired accuracy in the smooth region and near the first- and second-order extreme points as well as its capability to accurately capture discontinuities.
The organization of the paper is as follows: In Section 2, we briefly introduce the fifth-order WCNS scheme. In Section 3, we establish a multi-order nonlinear weighted interpolation method based on the 5-3-3-3 stencils. In Section 4, some traditional numerical examples are used to demonstrate the characteristics of the multi-order weighting strategy in terms of smooth region resolution and discontinuous capture. In Section 5, we provide the conclusions obtained in this article.

2. WCNS

We focus on hyperbolic conservation laws of the form
u t + f ( u ) x = 0 .
The WCNS procedure consists of three components: a high-order flux difference scheme, numerical flux evaluation, and weighted nonlinear interpolation. WCNS-E5 [32] is adopted for spatial discretizations, in which explicit flux differencing is used to calculate the f / x term in Equation (1), which is
f j = 1 h a 0 f ^ j + 1 / 2 f ^ j 1 / 2 + a 1 f ^ j + 3 / 2 f ^ j 3 / 2 + a 2 f ^ j + 5 / 2 f ^ j 5 / 2 ,
where a 0 = 75 / 64 , a 1 = 25 / 384 , a 2 = 3 / 640 , f ^ j + l + 1 / 2 is the numerical flux obtained at cell-edge, and f j represents a numerical approximation to the spatial derivative of the numerical flux f at the j cell-node. Equation (2) is sixth-order in accuracy with the parameters adopted.
In the WCNS, the flux at the half nodes is calculated using the flow variables u ^ j + l + 1 / 2 + and u ^ j + l + 1 / 2 , which are interpolated based on variables on the cell nodes. Numerical dissipation and the capture of discontinuities can be achieved through the use of either linear or nonlinear upwind interpolation and a suitable choice of the numerical flux. The interpolations of u ^ j + l + 1 / 2 + and u ^ j + l + 1 / 2 are symmetric to each other. For clarity, the superscripts of + and − are dropped, and only the formulas for u ^ j + l + 1 / 2 + are presented.
To ensure fifth-order accuracy of the overall scheme in smooth regions, the interpolation of u ^ j + l + 1 / 2 also requires fifth-order accuracy. The WCNS-E5 scheme designs a nonlinear interpolation method with an ideal accuracy of fifth-order on the stencil x j + l 2 , x j + l 1 , x j + l , x j + l + 1 , x j + l + 2 . The specific implementation of the interpolation process is shown in Section 3.

3. Nonlinear Multi-Order Weighted Interpolation

The nonlinear weighted interpolation procedure in WCNS is very similar to the weighted reconstruction in popular schemes such as WENO, TENO, etc. These weighted nonlinear procedures commonly incorporate smoothness indicators on sub-stencils to effectively detect and capture discontinuities. In theory, the research results obtained can be generalized to other nonlinear weighting schemes as well.
After first introducing the general nonlinear weighted interpolation procedure, the classical JS nonlinear interpolation and the Z nonlinear interpolation will be presented in Section 3.1 and Section 3.2, respectively. After that, the newly proposed weighting method is presented in Section 3.3, followed by its spectral analysis in Section 3.4.
The Lagrangian interpolation expression for WCNS-E5 based on 5-point stencil
S = x j 2 , x j 1 , x j , x j + 1 , x j + 2 is
u j + 1 / 2 l i n e a r = 1 128 3 u j 2 20 u j 1 + 90 u j + 60 u j + 1 5 u j + 2 .
The above interpolation is decomposed into a combination of three third-order interpolations based on 3-point sub-stencils S 1 = x j 2 , x j 1 , x j , S 2 = x j 1 , x j , x j + 1 , and S 3 = x j , x j + 1 , x j + 2 . The specific form of the combination and the third-order interpolations are
u j + 1 / 2 l i n e a r = d 1 u j + 1 / 2 1 + d 2 u j + 1 / 2 2 + d 3 u j + 1 / 2 3 = u j + 1 / 2 + O ( h 5 ) , u j + 1 / 2 1 = 1 8 3 u j 2 10 u j 1 + 15 u j = u j + 1 / 2 + O ( h 3 ) , u j + 1 / 2 2 = 1 8 u j 1 + 6 u j + 3 u j + 1 = u j + 1 / 2 + O ( h 3 ) , u j + 1 / 2 3 = 1 8 3 u j + 6 u j + 1 u j + 2 = u j + 1 / 2 + O ( h 3 ) ,
where the ideal weights are d 1 = 1 / 16 , d 2 = 10 / 16 and d 3 = 15 / 16 , resulting in a convex combination with fifth-order accuracy. The functions u j + 1 / 2 1 , u j + 1 / 2 2 , and u j + 1 / 2 3 are third-order interpolations for the S 1 , S 2 ,and S 3 stencils, respectively. Similar to the linear weighted convex combination expression in Equation (4), nonlinear weighted interpolation is written as
u j + 1 / 2 n o n l i n e a r = ω 1 u j + 1 / 2 1 + ω 2 u j + 1 / 2 2 + ω 3 u j + 1 / 2 3

3.1. JS Nonlinear Interpolation

The famous JS nonlinear weights from Jiang and Shu [25] are defined as
ω k = α k J S i = 1 3 α i J S ,   α k J S = d k β k J S + ε q
where the constant ε in the above equation is a small quantity to avoid the denominator becoming 0, and β k is the smoothness indicator. Usually, q takes a value of 2. The term β k J S [14] is defined as
β 1 J S = 1 4 u j 2 4 u j 1 + 3 u j 2 + u j 2 2 u j 1 + u j 2 β 2 J S = 1 4 u j + 1 u j 1 2 + u j 1 2 u j + u j + 1 2 β 3 J S = 1 4 3 u j + 4 u j + 1 u j + 2 2 + u j 2 u j + 1 + u j + 2 2
Previous studies have shown that such nonlinear weights can lead to a decrease in interpolation accuracy at the extreme points in smooth regions, resulting in a decrease in the overall scheme accuracy. To address this issue, numerous scholars have conducted extensive research, proposing the mapped WENO (M) [12], Z nonlinear weights [13], and ZQ nonlinear weights [27], etc.

3.2. Z Nonlinear Interpolation

Z nonlinear weights proposes [13] a high-order smoothing indicator and uses it to provide a construction method of smoothing indicators that differs from JS, theoretically solving the problem of extreme point reduction. Although Z weights are proposed based on the WENO format, this idea can be ported to nonlinear interpolation methods in the WCNS scheme. A brief introduction is as follows:
The calculation method for the smoothness indicator of each stencil is Equation (7), and the high-order smoothness indicator τ z is defined as follows:
τ z = β 3 J S β 1 J S = O ( h 5 ) ,   u j 0   or   u j = 0 ,   u j 0 O ( h 7 ) ,   u j = u j = 0
The redefined smoothness indicator for each stencil is represented as
β k Z = β k J S + ε β k J S + τ z + ε ,   k = 1 , 2 , 3
The famous Z nonlinear weights from Jiang and Shu [25] are defined as
ω k z = α k z i = 1 3 α i z ,   α k z = d k β k z = d k 1 + τ z β k J S + ε q ,   k = 1 , 2 , 3
The order of the nonlinear weighting function at non-extreme points is
α k z = d k + O ( ( h 3 ) q ) ,   k = 1 , 2 , 3
This can naturally meet the requirement of fifth-order accuracy for q = 1 , and the order of the nonlinear weighting function at the extreme point is
α k z = d k + O ( ( h ) q ) ,   u = 0 ,   u j 0 d k + O ( ( h 2 ) q ) ,   u j = u j = 0 ,   k = 1 , 2 , 3
when q 2 can meet the accuracy requirements.

3.3. A New Fifth-Order Multi-Order Z Nonlinear Interpolation

Although Z weighting theoretically overcomes the problem of JS weighting decreasing at extreme points, in practical example testing, the nonlinear weight values of the sub-stencil often deviate from the linear weights on smooth regions, leading to smooth regions not achieving fifth-order accuracy. Inspired by the Z weighting high-order smoothing indicator, this article designs a nonlinear weighting method for the 5-3-3-3 stencils. The weighting method is completely consistent with JS, and the interpolation expression for the 5-point stencil adopts Equation (3). The smoothing indicators of each sub-stencil are
β 0 M O Z = β 1 J S β 3 J S 4 β 1 J S + β 3 J S 3 β 1 M O Z = β 1 J S β 2 M O Z = β 2 J S β 3 M O Z = β 3 J S
The nonlinear weighting is called MOZ (multi-order-Z) candidate interpolation weighting since the order of the smoothness indicators for candidate interpolations of different orders is also different. Their orders of magnitude are
β 0 M O Z = O ( h 14 ) ,   u j 0   O ( h 8 ) ,   u j = 0 , u j 0 O ( h 10 ) ,   u = u j = 0   β k M O Z = O ( h 2 ) ,   u j 0 O ( h 4 ) ,   u j = 0 , u j 0 O ( h 6 ) ,   u j = u j = 0 ,   k = 1 , 2 , 3
The term β 0 M O Z depends on all the nodes in the whole stencil. Near discontinuities,
| β 1 J S β 3 J S | / ( β 1 J S + β 3 J S ) 3 = O ( 1 ) . In smooth regions, | β 1 J S β 3 J S | / ( β 1 J S + β 3 J S ) 3 is a small quantity related to the grid scale. This design improves the order of the smoothness indicator of the 5-point sub-stencil, which increases the nonlinear weight of the 5-point sub-stencil in smooth regions to improve the scheme’s resolution and to avoid loss of extreme point accuracy.
The nonlinear weights of MOZ are specifically expressed as
ω 0 M O Z = C T ( β 0 M O Z ) p ( β 0 M O Z + ε ) q γ 0 ω k M O Z = C T ( β 0 M O Z ) p ( β k M O Z + ε ) q γ k , k = 1 , 2 , 3 ; p = q = 1
where C T = γ 0 + k = 1 3 γ k ( β 0 M O Z ) p ( β k M O Z + ε ) q 1 , and γ 0 , γ k are the linear weights, which satisfy γ 0 + γ 1 + γ 2 + γ 3 = 1 . Based on order analysis using Taylor series expansions, the leading terms of the nonlinear weights are
O ( ω 0 M O Z ) = O ( 1 ) O ( ω k M O Z ) = O β 0 M O Z β k M O Z + ε = O ( h 10 ) , u j 0 O ( h 4 ) , u j = u j = 0 O ( h 4 ) , u j = 0 , u j 0 ,   k = 1 , 2 , 3 ;   p = q = 1
The final nonlinear interpolation expression at the half node is
u j + 1 / 2 M O Z = k = 0 3 ω k M O Z u j + 1 / 2 k
in which u j + 1 / 2 k is given by Equation (4). To ensure that the denominator is not zero, all subsequent examples in this article use ε = 10 20 . Through accuracy analysis, it is easy to obtain that MOZ weights avoid degrading the accuracy at both first- and second-order extreme points. To improve the resolution near discontinuities, the linear weights of the three 3-point stencils are set to γ k = d k ( 1 γ 0 ) , k = 1 , 2 , 3 , which can achieve fifth-order accuracy. In addition, it should be pointed out that based on the design concept of MOZ, it is easy to prove that if β 0 M O Z = τ z , p = 2 , q = 2 and the linear weights satisfy
γ 0 = 0.5 , γ k = d k ( 1 γ 0 ) ,   k = 1 , 2 , 3 .
MOZ can degenerate into Z weighting; When the linear weights satisfy Equation (19) and p = 1 , q = 2 , it degenerates into JS weighting.
γ 0 = 0 , γ k = d k ( 1 γ 0 ) , k = 1 , 2 , 3 .
To further illustrate the influence of the linear weight γ 0 on the nonlinear weight values of the 5-point sub-stencil in the MOZ weighting function, the variation of the nonlinear weight values at the first-order extreme points and discontinuities is given based on the following equation:
u ( x ) = e 0.75 ( x 1 ) x 2 , 1 x < 0.525 , e 0.75 ( x 1 ) x 2 + 2 , 0.525 x 1 .
From Figure 1, it can be seen that although γ 0 is much smaller than the grid scale, the nonlinear weight ω 0 M O Z quickly approaches 1.0. In the vicinity of discontinuities, as γ 0 approaches 1.0, ω 0 M O Z is also much smaller than the grid scale. It can be seen that the MOZ designed in this paper achieves fifth-order accuracy and is relatively lenient with regard to the selection of linear weights.

3.4. Spectral and Accuracy Analysis

In this section, a simple analysis is conducted for comparing MOZ weighting with different linear weights and Z weighting in terms of accuracy and resolution. Using the ADR (approximate dispersion relation) [33] method, the spectral properties of fifth-order WCNS using ideal weights, Z weights, and MOZ weights with different linear weights are presented. Figure 2 shows the modified wavenumber between the ideal linear scheme and nonlinear weighted schemes. Figure 2a shows the real part, and Figure 2b shows the imaginary part. MOZ weighting with different linear weights has better dispersion and dissipation spectral characteristics than Z weighting.
The convergence accuracy of Z weighting and MOZ weighting with different linear weights are tested at extreme points using the function u = e 0.75 ( x 1 ) x p [34]. The point x = 0 is a first-order extreme point for p = 2 , while a second extreme point is p = 3 . Grid spacing of h = 2 m h 0 h 0 = 0.04 is adopted. The accuracy test results are presented in Table 1 and Table 2. The MOZ weights successfully achieve the ideal order at both the first- and second-order extreme points. The Z function still degrades in order at the second-order extreme point. The actual errors of MOZ weighting are better than those of Z weighting, which are the same up to the third significant digits in Table 1 and Table 2.
In addition, the MOZ weights constructed in this article have the following two characteristics:
(1)
Based on the original three 3-point stencils, a 5-point stencil is added and matched with a high-resolution high-order smoothness indicator. The choice of the smoothness indicator is consistent with the sub-stencil width. This choice helps the overall nonlinear interpolation to achieve the ideal order of accuracy. This choice ensures that despite the use of the JS weighting method, the format accuracy can still be maintained. In addition, by changing the linear weights, MOZ weighting can degrade to Z weighting and JS weighting, resulting in high design flexibility.
(2)
The linear weights of three 3-point stencils are designed in an ideal allocation ratio of a convex combination to fifth-order accuracy, which increases the utilization of the sub-stencil information and improves the resolution near discontinuities.

4. Numerical Tests

The 4-stage fourth-order Runge–Kutta method in reference [35] is used for temporal discretization. To maintain the same temporal truncation error as the fifth-order spatial discretization, the time-marching step calculation method is
Δ t = C F L a h 1.25 ,
where ( a , C F L , h ) are the maximum eigenvalue, the Courant number, and the minimum grid scale, respectively.

4.1. Linear Scalar Equation

u t + u x = 0 .
Example 1: This example is calculated in x 0 , 1 using periodic boundary conditions with initial conditions [30] of
u ( x , 0 ) = e 300 ( x 0.5 ) 2 .
Based on the linear convection equation, the influence of MOZ weighting on the accuracy of the scheme is tested. Different from the accuracy tests, especially only for the extreme points in Section 3.4, the accuracy of the whole spatial and temporal discretization is tested here. The computational efficiency is compared, as shown in Table 3. The CPU time for MOZ is very close to that of Z.
Firstly, we test the impact of the linear weights γ 0 = h min , 0.01 , 0.5 , 0.8 in MOZ weighting on the calculation results. Taking u ( x , 0 ) = e 300 ( x 0.5 ) 2 as the initial value, the solution is advanced to the non-dimensional time of 1 using a grid spacing of h = 0.1 × 2 m for the m-th level of the grid. Table 4 shows the errors and convergence orders of the results using MOZ weighting. L 1 is the average of the sum of errors of all grid points relative to the analytical solution. L 2 is the average of the sum of squares of errors of all grid points relative to the analytical solution. L 3 is the maximum value among the absolute values of errors of all grid points relative to the analytical solution. The different choices of the linear weights γ 0 do not affect the convergence order of the schemes. Figure 3 shows the error curves concerning grid resolutions using the three nonlinear weights. The resulting error of MOZ weighting with different linear weights is better than that of Z weighting.
Example 2: This example is calculated in x 1 , 1 using periodic boundary conditions with initial conditions [13]
u ( x , 0 ) = 1 6 [ G ( x , z δ ) 4 G ( x , z ) + G ( x , z + δ ) ] , x [ 0.8 , 0.6 ] , 1 , x [ 0.4 , 0.2 ] , 1 10 x 1 , x [ 0 , 0.2 ] , 1 6 [ F ( x , a δ ) 4 F ( x , z ) + F ( x , a + δ ) ] , x [ 0.4 , 0.6 ] , 0 , o t h e r w i s e , G ( x , z ) = e β ( x z ) 2 , F ( x , a ) = max ( 1 α 2 ( x a ) 2 , 0 ) ,
where z = 0.7 , δ = 0.005 , β = log 2 / ( 36 δ 2 ) , a = 0.5 , α = 10 . The simulations are run to t = 8 . From Figure 4, it can be seen that Z weighting and MOZ weighting with different linear weights have almost no oscillations near discontinuities. Meanwhile, MOZ weighting exhibits higher resolution near extreme points and discontinuities than Z weighting.

4.2. Burgers’ Equation

The Burgers’ equation is a nonlinear scalar equation with the form
u t + x 1 2 u 2 = 0 .
This example is calculated in x 0 , 2 using periodic boundary conditions with initial conditions [12]
u ( x , 0 ) = sin ( π x ) .
Table 5 and Figure 5 show the errors and convergence orders using four types of weights at t = 1 when discontinuities of the solution have not formed. From the test results, it can be seen that the convergence orders using Z and MOZ weights can converge to the fifth order. The errors of MOZ weights are similar to those of Z weights.
Discontinuity forms in the solution after t = 1.5 / π . From Figure 6, it can be seen that MOZ weights with different linear weights and Z weights effectively capture the discontinuity.
Next, the basic examples of one-dimensional and two-dimensional Euler equations are used to test the resolution and discontinuous capture ability of MOZ weighting and Z weighting. Based on the theoretical analysis and simple testing of scalar equations mentioned above, it is known that the linear weight of MOZ weighting will not affect the accuracy of the scheme, but the actual error will further decrease with the increase in linear weights γ 0 . The following examples in this article were tested using linear coefficients of γ 0 = h , 0.01 , 0.5 , 0.8 , and the test results of γ 0 with the smallest results are still better than those of Z weighting. The maximum γ 0 can also achieve stable discontinuous capture. Recommended values for linear weights are h γ 0 0.8 . By adjusting γ 0 , the resolution and discontinuous capture ability of specific examples can be flexibly controlled and have a default value of γ 0 = 0.5 . Due to limited space, we only provide test results for γ 0 = 0.5 .

4.3. One-Dimensional Euler Equation

The Euler’ equation is a nonlinear scalar equation with the form
t ρ ρ u E + x ρ u ρ u 2 + p ( E + p ) u = 0 .
Example 1: The Sod and Lax problems [13] are both shock tube problems. The initial conditions of the Sod problem are
( ρ , u , p , γ ) T = ( 1 , 0 , 1 , 1.4 ) T ,   x [ 0 , 0.5 ) , ( 0.125 , 0 , 0.1 , 1.4 ) T ,   x [ 0.5 , 1.0 ] ,
while the initial conditions of the Lax problem are
( ρ , u , p , γ ) T = ( 0.445 , 0.698 , 3.528 , 1.4 ) T ,   x [ 0.5 , 0 ) , ( 0.5 , 0 , 0.571 , 1.4 ) T ,   x [ 0 , 0.5 ] .
All the boundaries adopt the Dirichlet boundary condition using the left and right state values.
Figure 7 and Figure 8 show the density results of nonlinear weighted functions at t = 0.25 on the Sod problem and t = 0.15 on the Lax problem, respectively. It can be seen that there are almost no non-physical oscillations near the discontinuity using Z weighting and MOZ weighting. The resolution of MOZ weighting near the discontinuity is higher than that of Z weighting.
Example 2: The Shu–Osher problem [25] has initial conditions of
( ρ , u , p , γ ) T = ( 3.857 , 2.629 , 10.333 , 1.4 ) T ,   x [ 0 , 1 ) , ( 1 + 0.2 sin ( 5 x ) , 0 , 1 , 1.4 ) T ,   x [ 1 , 10 ] .
All the boundaries adopt the Dirichlet boundary condition.
Figure 9 shows the density results of nonlinear weighted functions at t = 1.8 on the Shu–Osher problem. From the enlarged density, it can be seen that MOZ weighting has better resolution for high-frequency waves compared to Z weighting, and it is closer to the exact solution.

4.4. Two-Dimensional Euler Equations

The equations have the form of
t ρ ρ u ρ v E + x ρ u ρ u 2 + p ρ u v ( E + p ) u + y ρ v ρ v u ρ v 2 + p ( E + p ) v = 0 .
Example 1: Propagation of a vortex in two-dimensional space.A vortex is added to the mean flow ρ , u , v , p = 1 , 1 , 0 , 1 , specified as
( δ u , δ v ) = ε e α 1 r 2 ( y ¯ , x ¯ ) , δ T = ( γ 1 ) ε 2 4 γ α e 2 α 1 r 2 , δ S = 0 ,
where ( x ¯ , y ¯ ) = 1 R c ( x 5 , y 5 ) , r 2 = x ¯ 2 + y ¯ 2 , ε = 0.3 , R c = 0.5 , α = 0.35 . The computations are performed on domain 0 , 10 × 0 , 10 . The periodic boundary conditions are for all boundaries. The Courant number is 0.1, and the calculation is conducted until t = 1. Table 6 compare the accuracy of different weighting functions for solving this Euler problem at different grid resolutions. Although all weight functions can achieve the same convergence accuracy, the error of the MOZ weight is smaller than those of the other weight functions.
The Courant number is 0.3, and calculation is conducted until t = 0.8. Figure 10 shows that the results using MOZ weighting have more vortices resolved at the shear layer compared to Z weighting at the same grid scale. With refinement of the grid, MOZ weighting can distinguish more small vortex structures compared to Z weighting in locations similar to the “mushroom-shaped” shape, resulting in a significant improvement in resolution. Example 2: A two-dimensional Riemannian problem [30] has initial conditions of
( ρ , u , v , p , γ ) = ( 0.138 , 1.206 , 1.206 , 0.029 , 1.4 ) ( x , y ) 0 , 4 5 × 0 , 4 5 , ( 0.5323 , 0 , 1.206 , 0.3 , 1.4 ) ( x , y ) 4 5 , 1 × 0 , 4 5 , ( 0.5323 , 1.206 , 0 , 0.3 , 1.4 ) ( x , y ) 0 , 4 5 × 4 5 , 1 , ( 1.5 , 0 , 0 , 1.5 , 1.4 ) ( x , y ) 4 5 , 1 × 4 5 , 1 ,
Example 3: A double Mach reflection problem [35] has initial conditions
( ρ , u , p , γ ) T = ( 1.4 , 0 , 0 , 1 , 1.4 ) T ,   y < 3 ( x 1 / 6 ) , ( 8.0 , 7.145 , 4.125 , 116.5 , 1.4 ) T , otherwise .
The initial conditions lead to a Mach 10 oblique shock with an angle of π / 3 relative to the x-axis. The oblique shock is deflected by the leading edge of the solid wall at ( x , y ) = ( 1 / 6 , 0 ) . The solid wall is extended to x = 4 along the x-axis. The upper boundary is assigned by a Dirichlet boundary condition based on the analytical speed of the shock. The lower boundary of x 0 , 1 / 6 uses an inviscid wall boundary. The left and right boundaries are, respectively, the inlet boundary conditions and the outlet boundary conditions. Using a Courant number of 0.3, the simulation is run until t = 0.8. From the enlarged contour of the shear layer regions in Figure 11, it can be seen that MOZ weighting shows better resolution compared to Z weighting. With refinement of the grid, this difference becomes more significant.
Example 4: A Rayleigh-Taylor instability problem [36] has initial conditions of
( ρ , u , v , p , γ ) T = ( 2 , 0 , 0.025 a cos ( 8 π x ) , 1 + 2 y , 5 / 3 ) ,   ( x , y ) [ 0 , 0.25 ] × [ 0 , 0.5 ) , ( 1 , 0 , 0.025 a cos ( 8 π x ) , y + 3 / 2 , 5 / 3 ) ,   ( x , y ) [ 0 , 0.25 ] × [ 0.5 , 1 ] ,
( ρ , u , v , p , γ ) = ( 1 , 0 , 0 , 2.5 , 5 / 3 ) ,   y = 1 , ( 2 , 0 , 0 , 1 , 5 / 3 ) ,   y = 0 .
The upper and lower boundaries use Dirichlet boundary conditions according to Equation (36), while a symmetric boundary condition is adopted for the left and right boundaries. Using a Courant number of 0.3, the simulation is run until t = 1.95. Figure 12 shows that MOZ weighting has already captured the vortices near y = 0.5 on a 481 × 121 grid. However, these vortices have not yet fully formed when using Z weighting. With refinement of the grid, MOZ weighting can distinguish smaller-scale vortex structures near y = 0.6 compared to Z weighting. The results of MOZ weighting exhibit better resolution compared to Z weighting. Example 5: A Richtmyer–Meshkova instability problem [31] has initial conditions of
( ρ , u , v , p , γ ) = ( 3.33333 , 2.07063 , 0.0 , 7.125 , 1.4 ) , 0 x < 0.06 , ( 1.0 , 0.0 , 0.0 , 1.0 , 1.4 ) , 0 . 06 x < 0.1 + 0.008 · cos ( n π y ) , ( 0.138 , 0.0 , 0.0 , 1.0 , 1.4 ) , 0 . 1 + 0 . 008 · cos ( n π y ) x 0.6 .
The calculation domain is [ 0 , 0.6 ] × [ 0 , 0.1 ] . The upper and lower boundary conditions are periodic, and the left and right boundary conditions are fixed values that corresponds to the initial field. Using a Courant number of 0.3, the simulation is run until t = 0.16. Three scenarios are calculated: namely, 1, 2, and 3 shock bubbles, corresponding to n = 20, 40, and 60, respectively, in the initial conditions. From the results in Figure 13, it can be seen that the calculation results for all three cases show that MOZ weighting can capture more flow details about the “wake vortex” and “rod-shaped” positions of the shock bubble compared to Z-weighting, and its resolution is significantly better than that of Z weighting.
Example 6: Shock vortex interaction problem [37].
This example describes the interaction between a moving vortex and a steady shock wave. The calculation domain is 0 , 2 × 0 , 1 . A shock wave with a Mach number of 1.1 is vertically located at x = 0.5 and has values of ( ρ , u , v , p ) = ( 1 , 1.1 γ , 0 , 1 ) on the left-hand side, and the values on the right-hand side are calculated according to the shock relationship. The left and right boundaries are fixed values, and the top and bottom are symmetric boundaries. The vortex is initially located at x = 0.5 , and the vortex is described by
u ˜ = ε τ v e α 1 τ v 2 y , v ˜ = ε τ v e α 1 τ v 2 x , T ˜ = ( γ 1 ) ε 2 e 2 α 1 τ v 2 4 α γ , S ˜ = 0 , τ v = r r c .
where r = x x c 2 + y y c 2 is the distance from the vortex center, r c = 0.05 is a parameter controlling the vortex size. ε = 0.3 controls the strength of the vortex, and α = 0.204 controls the attenuation rate of the vortices. The simulations are run until t = 0.8.
Figure 14 shows that MOZ weighting can effectively simulate the shock. In addition, the results of Z weighting and MOZ weighting are compared at t = 0.6. Figure 15 shows the distribution of pressure at the vortex center y = 0.5 . Compared with the finer-grid result of JS weights, it can be seen that MOZ weights have lower dissipation, and no obvious overshoot occurs post the shock wave. MOZ weighting has higher resolution before and after shock waves than Z weighting.

5. Conclusions

Based on 5-3-3-3 stencil interpolation, a new high-order smoothness indicator for the fifth-order sub-stencil is proposed; the resulting multi-order weighting can maintain the ideal order of the (5-3-3-3) nonlinear weighting. The linear weight selection of three 3-point stencils satisfies the convex combination condition for the optimal accuracy of fifth-order interpolation. These strategies form multi-order-Z nonlinear weighting, which we denote as MOZ weighting. The main conclusions are as follows:
(1)
Maintains accuracy: MOZ weighting ensures the ideal fifth-order accuracy of the scheme at the first- and second-order extremum points.
(2)
High aspect ratio: Numerical validation tests show that the format using MOZ weighting has better resolution than Z weighting in smooth regions, shear layers, and discontinuities, which is consistent with the conclusions of spectral analysis, and there are no obvious non-physical false fluctuations at discontinuities. From a theoretical analysis perspective, the number of calculations for MOZ is equivalent to that required by Z weighting, so increasing resolution does not decrease computational efficiency, resulting in a significant improvement in the ratio of resolution to efficiency.

Author Contributions

Conceptualization, M.M., J.B. and Z.Y.; methodology, M.M., J.B. and Z.Y.; software, Y.M. and J.B.; validation, M.M., J.B. and Z.Y.; investigation, Y.M. and J.B.; data curation, Y.M. and J.B.; writing—original draft preparation, D.J. and J.B.; writing—review and editing, D.J. and J.B. All authors have read and agreed to the published version of the manuscript.

Funding

This research was supported by the National Natural Science Foundation of China (grant Nos. 11972362 and 11372342).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

The research did not involve humans.

Data Availability Statement

The data presented in this study are available on request from the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
MDPIMultidisciplinary Digital Publishing Institute
DOAJDirectory of open access journals
TLAThree letter acronym
LDLinear dichroism

References

  1. Wang, Z.J.; Fidkowski, K.; Abgrall, R.; Bassi, F.; Caraeni, D.; Cary, A.; Deconinck, H.; Hartmann, R.; Hillewaert, K.; Huynh, H.T.; et al. High-order CFD methods: Current status and perspective. Int. J. Numer. Methods Fluids 2013, 72, 811–845. [Google Scholar] [CrossRef]
  2. Lele, S.K. Compact finite difference schemes with spectral-like resolution. J. Comput. Phys. 1992, 103, 16–42. [Google Scholar] [CrossRef]
  3. Harten, A.; Engquist, B.; Osher, S.; Chakravarthy, S.R. Uniformly high order accurate essentially non-oscillatory schemes, III. J. Comput. Phys. 1997, 131, 3–47. [Google Scholar] [CrossRef]
  4. Liu, X.D.; Osher, S.; Chan, T. Weighted essentially non-oscillatory schemes. J. Comput. Phys. 1994, 115, 200–212. [Google Scholar] [CrossRef]
  5. Fu, L.; Hu, X.Y.; Adams, N.A. A family of high-order targeted ENO schemes for compressible-fluid simulations. J. Comput. Phys. 2016, 305, 333–359. [Google Scholar] [CrossRef]
  6. Deng, X.; Maekawa, H. Compact high-order accurate nonlinear schemes. J. Comput. Phys. 1997, 130, 77–91. [Google Scholar] [CrossRef]
  7. Deng, X.; Mao, M.; Deng, X.; Mao, M. Weighted compact high-order nonlinear schemes for the Euler equations. In Proceedings of the 13th Computational Fluid Dynamics Conference, Snowmass Village, CO, USA, 29 June–2 July 1997; p. 1941. [Google Scholar]
  8. Zhang, H.; Zhang, F.; Xu, C. Towards optimal high-order compact schemes for simulating compressible flows. Appl. Math. Comput. 2019, 355, 221–237. [Google Scholar] [CrossRef]
  9. Martín, M.P.; Taylor, E.M.; Wu, M.; Weirs, V.G. A bandwidth-optimized WENO scheme for the effective direct numerical simulation of compressible turbulence. J. Comput. Phys. 2006, 220, 270–289. [Google Scholar] [CrossRef]
  10. Hu, X.; Wang, Q.; Adams, N.A. An adaptive central-upwind weighted essentially non-oscillatory scheme. J. Comput. Phys. 2010, 229, 8952–8965. [Google Scholar] [CrossRef]
  11. Ha, Y.; Kim, C.H.; Lee, Y.J.; Yoon, J. An improved weighted essentially non-oscillatory scheme with a new smoothness indicator. J. Comput. Phys. 2013, 232, 68–86. [Google Scholar] [CrossRef]
  12. Henrick, A.K.; Aslam, T.D.; Powers, J.M. Mapped weighted essentially non-oscillatory schemes: Achieving optimal order near critical points. J. Comput. Phys. 2005, 207, 542–567. [Google Scholar] [CrossRef]
  13. Borges, R.; Carmona, M.; Costa, B.; Don, W.S. An improved weighted essentially non-oscillatory scheme for hyperbolic conservation laws. J. Comput. Phys. 2008, 227, 3191–3211. [Google Scholar] [CrossRef]
  14. Zhang, Y.T.; Shu, C.W. ENO and WENO schemes. In Handbook of Numerical Analysis; Elsevier: Amsterdam, The Netherlands, 2016; Volume 17, pp. 103–122. [Google Scholar]
  15. Zhang, S.; Zhu, J.; Shu, C.W. A brief review on the convergence to steady state solutions of Euler equations with high-order WENO schemes. Adv. Aerodyn. 2019, 1, 16. [Google Scholar] [CrossRef]
  16. Shu, C.W. Essentially non-oscillatory and weighted essentially non-oscillatory schemes. Acta Numer. 2020, 29, 701–762. [Google Scholar] [CrossRef]
  17. Deng, X.; Zhang, H. Developing high-order weighted compact nonlinear schemes. J. Comput. Phys. 2000, 165, 22–44. [Google Scholar] [CrossRef]
  18. Yan, Z.; Liu, H.; Mao, M.; Zhu, H.; Deng, X. New nonlinear weights for improving accuracy and resolution of weighted compact nonlinear scheme. Comput. Fluids 2016, 127, 226–240. [Google Scholar] [CrossRef]
  19. Ma, Y.; Yan, Z.G.; Liu, H.; Min, Y.; Zhu, H. Improved weighted compact nonlinear scheme for implicit large-eddy simulations. Comput. Fluids 2022, 240, 105412. [Google Scholar] [CrossRef]
  20. Nonomura, T.; Fujii, K. Robust explicit formulation of weighted compact nonlinear scheme. Comput. Fluids 2013, 85, 8–18. [Google Scholar] [CrossRef]
  21. Deng, X.; Mao, M.; Tu, G.; Zhang, Y.; Zhang, H. Extending weighted compact nonlinear schemes to complex grids with characteristic-based interface conditions. AIAA J. 2010, 48, 2840–2851. [Google Scholar] [CrossRef]
  22. Deng, X.; Mao, M.; Tu, G.; Zhang, H.; Zhang, Y. High-order and high accurate CFD methods and their applications for complex grid problems. Commun. Comput. Phys. 2012, 11, 1081–1102. [Google Scholar] [CrossRef]
  23. Mao, M.; Zhu, H.; Deng, X.; Min, Y.; Liu, H. Effect of geometric conservation law on improving spatial accuracy for finite difference schemes on two-dimensional nonsmooth grids. Commun. Comput. Phys. 2015, 18, 673–706. [Google Scholar] [CrossRef]
  24. Meiliang, M.; Yi, J.; Yaobing, M.; Huajun, Z.; Xiaogang, D. A survey of geometry conservation law for high-order finite difference method. Acta Aerodyn. Sin. 2021, 39, 157–167. [Google Scholar]
  25. Jiang, G.S.; Shu, C.W. Efficient implementation of weighted ENO schemes. J. Comput. Phys. 1996, 126, 202–228. [Google Scholar] [CrossRef]
  26. Acker, F.; Borges, R.d.R.; Costa, B. An improved WENO-Z scheme. J. Comput. Phys. 2016, 313, 726–753. [Google Scholar] [CrossRef]
  27. Zhu, J.; Qiu, J. A new fifth order finite difference WENO scheme for solving hyperbolic conservation laws. J. Comput. Phys. 2016, 318, 110–121. [Google Scholar] [CrossRef]
  28. Zhu, J.; Shu, C.W. A new type of multi-resolution WENO schemes with increasingly higher order of accuracy. J. Comput. Phys. 2018, 375, 659–683. [Google Scholar] [CrossRef]
  29. Wang, Z.; Zhu, J.; Tian, L.; Yang, Y.; Zhao, N. An efficient fifth-order finite difference multi-resolution WENO scheme for inviscid and viscous flow problems. Comput. Fluids 2021, 230, 105138. [Google Scholar] [CrossRef]
  30. Zhang, H.; Wang, G.; Zhang, F. A multi-resolution weighted compact nonlinear scheme for hyperbolic conservation laws. Int. J. Comput. Fluid Dyn. 2020, 34, 187–203. [Google Scholar] [CrossRef]
  31. Wang, Z.; Zhu, J.; Wang, C.; Zhao, N. An efficient hybrid multi-resolution WCNS scheme for solving compressible flows. J. Comput. Phys. 2023, 477, 111877. [Google Scholar] [CrossRef]
  32. Deng, X. High-order accurate dissipative weighted compact nonlinear schemes. Sci. China Ser. A Math. 2002, 45, 356–370. [Google Scholar] [CrossRef]
  33. Pirozzoli, S. On the spectral properties of shock-capturing schemes. J. Comput. Phys. 2006, 219, 489–497. [Google Scholar] [CrossRef]
  34. Zheng, S.; Deng, X.; Wang, D.; Xie, C. A parameter-free ε-adaptive algorithm for improving weighted compact nonlinear schemes. Int. J. Numer. Methods Fluids 2019, 90, 247–266. [Google Scholar] [CrossRef]
  35. Woodward, P.; Colella, P. The numerical simulation of two-dimensional fluid flow with strong shocks. J. Comput. Phys. 1984, 54, 115–173. [Google Scholar] [CrossRef]
  36. Shi, J.; Zhang, Y.T.; Shu, C.W. Resolution of high order WENO schemes for complicated flow structures. J. Comput. Phys. 2003, 186, 690–696. [Google Scholar] [CrossRef]
  37. Shen, Y.; Zha, G. Improvement of the WENO scheme smoothness estimator. Int. J. Numer. Methods Fluids 2010, 64, 653–675. [Google Scholar] [CrossRef]
Figure 1. The variation of nonlinear weight ω 0 M O Z with linear weight γ 0 for 5-point stencil: (a) first-order extreme point; (b) discontinuities.
Figure 1. The variation of nonlinear weight ω 0 M O Z with linear weight γ 0 for 5-point stencil: (a) first-order extreme point; (b) discontinuities.
Entropy 26 00334 g001
Figure 2. Results of spectral characteristics of nonlinear weights using MOZ and Z: (a) real part; (b) imaginary part. (Red square symbol denotes the result based on Z weights; Yellow right triangle, blue left triangle, green top triangle, and purple circle have MOZ weights of γ 0 = h , 0.01 , 0.5 , 0.8 , respectively; Solid lines indicate linear format).
Figure 2. Results of spectral characteristics of nonlinear weights using MOZ and Z: (a) real part; (b) imaginary part. (Red square symbol denotes the result based on Z weights; Yellow right triangle, blue left triangle, green top triangle, and purple circle have MOZ weights of γ 0 = h , 0.01 , 0.5 , 0.8 , respectively; Solid lines indicate linear format).
Entropy 26 00334 g002
Figure 3. Convergence orders of fifth-order schemes based on Z and MOZ weighting with different linear weights at t = 1 for the case of u ( x , 0 ) = e 300 ( x 0.5 ) 2 based on the linear advection equation. (The horizontal axis represents the number of grid points (N) used in the calculation. The error of (a), (b), and (c) has already been provided in the previous text respectively. The circular symbol denotes the result of Z weighting; values of 1, 2, 3, and 4 denote the results of different linear weights of MOZ weighting).
Figure 3. Convergence orders of fifth-order schemes based on Z and MOZ weighting with different linear weights at t = 1 for the case of u ( x , 0 ) = e 300 ( x 0.5 ) 2 based on the linear advection equation. (The horizontal axis represents the number of grid points (N) used in the calculation. The error of (a), (b), and (c) has already been provided in the previous text respectively. The circular symbol denotes the result of Z weighting; values of 1, 2, 3, and 4 denote the results of different linear weights of MOZ weighting).
Entropy 26 00334 g003
Figure 4. Test of three types of nonlinear weights based on piecewise discontinuous solutions using 200 grid points at t = 8: (a) variable u; (b) variable u zoomed in. (Red square symbol denotes the result based on Z weighting; yellow right triangle, blue left triangle, green top triangle, and purple circle have MOZ weightings of γ 0 = h , 0.01 , 0.5 , 0.8 , respectively; solid lines denotes the exact solution).
Figure 4. Test of three types of nonlinear weights based on piecewise discontinuous solutions using 200 grid points at t = 8: (a) variable u; (b) variable u zoomed in. (Red square symbol denotes the result based on Z weighting; yellow right triangle, blue left triangle, green top triangle, and purple circle have MOZ weightings of γ 0 = h , 0.01 , 0.5 , 0.8 , respectively; solid lines denotes the exact solution).
Entropy 26 00334 g004
Figure 5. Convergence orders of four nonlinear fifth-order schemes at t = ( 0.5 / π ) of the one-dimensional inviscid Burgers’ equation with u ( x , 0 ) = s i n ( π x ) , t = ( 0.5 / π ) (The horizontal axis represents the number of grid points (N) used in the calculation. The error of (a), (b), and (c) has already been provided in the previous text respectively. The circular symbol denotes the result of Z weighting; values of 1, 2, 3, and 4 denote the results of different linear weights of MOZ weighting).
Figure 5. Convergence orders of four nonlinear fifth-order schemes at t = ( 0.5 / π ) of the one-dimensional inviscid Burgers’ equation with u ( x , 0 ) = s i n ( π x ) , t = ( 0.5 / π ) (The horizontal axis represents the number of grid points (N) used in the calculation. The error of (a), (b), and (c) has already been provided in the previous text respectively. The circular symbol denotes the result of Z weighting; values of 1, 2, 3, and 4 denote the results of different linear weights of MOZ weighting).
Entropy 26 00334 g005
Figure 6. The results of four nonlinear fifth-order schemes of the one-dimensional inviscid Burgers’ equation with ( x , 0 ) = s i n ( π x ) at t = 1.5 / π , grid N:100. (Red square symbol denotes the result based on Z weighting; yellow top triangle, blue right triangle, and green left triangle have MOZ weighting of γ 0 = 0.01 , 0.5 , 0.8 , respectively; solid lines denote the exact solution.)
Figure 6. The results of four nonlinear fifth-order schemes of the one-dimensional inviscid Burgers’ equation with ( x , 0 ) = s i n ( π x ) at t = 1.5 / π , grid N:100. (Red square symbol denotes the result based on Z weighting; yellow top triangle, blue right triangle, and green left triangle have MOZ weighting of γ 0 = 0.01 , 0.5 , 0.8 , respectively; solid lines denote the exact solution.)
Entropy 26 00334 g006
Figure 7. Numerical and exact solutions of the Sod problem at t = 0.25 using 200 grid points: (a) density; (b) density zoomed in (red square symbol denotes Z weighting, blue upper triangle denotes MOZ weighting, and solid line denotes the exact solution).
Figure 7. Numerical and exact solutions of the Sod problem at t = 0.25 using 200 grid points: (a) density; (b) density zoomed in (red square symbol denotes Z weighting, blue upper triangle denotes MOZ weighting, and solid line denotes the exact solution).
Entropy 26 00334 g007
Figure 8. Numerical and exact solutions of the Lax problem at t = 0.15 using 200 grid points: (a) density; (b) density zoom in (red square symbol denotes Z weighting, blue upper triangle denotes MOZ weighting, and solid line denotes the exact solution).
Figure 8. Numerical and exact solutions of the Lax problem at t = 0.15 using 200 grid points: (a) density; (b) density zoom in (red square symbol denotes Z weighting, blue upper triangle denotes MOZ weighting, and solid line denotes the exact solution).
Entropy 26 00334 g008
Figure 9. Numerical and exact solutions of the Shu–Osher problem at t = 1.8 using 200 grid points: (a) density; (b) density zoom in (red square symbol denotes Z weighting, blue upper triangle denotes MOZ weighting, and solid line denotes the exact solution).
Figure 9. Numerical and exact solutions of the Shu–Osher problem at t = 1.8 using 200 grid points: (a) density; (b) density zoom in (red square symbol denotes Z weighting, blue upper triangle denotes MOZ weighting, and solid line denotes the exact solution).
Entropy 26 00334 g009
Figure 10. The density contour of 2D-Lax–Liu–Riemannian problem at t = 0.8 using 400 × 400 and 1024 × 1024 grid points. CFL = 0.3. The figures use 30 density contour lines ranging from 0.1–1.8. (a,b) Z; (c,d) MOZ.
Figure 10. The density contour of 2D-Lax–Liu–Riemannian problem at t = 0.8 using 400 × 400 and 1024 × 1024 grid points. CFL = 0.3. The figures use 30 density contour lines ranging from 0.1–1.8. (a,b) Z; (c,d) MOZ.
Entropy 26 00334 g010
Figure 11. The density contour of double Mach reflection problem at t = 0.2 using 800 × 200 and 1600 × 400 grid points. CFL = 0.3. The figures use 30 density contour lines ranging from 1.5–22.7. (a,b) Z; (c,d) MOZ.
Figure 11. The density contour of double Mach reflection problem at t = 0.2 using 800 × 200 and 1600 × 400 grid points. CFL = 0.3. The figures use 30 density contour lines ranging from 1.5–22.7. (a,b) Z; (c,d) MOZ.
Entropy 26 00334 g011
Figure 12. The density contour of Rayleigh–Taylor instability problem at t = 1.95 using 120 × 480 and 250 × 1000 grid points. CFL = 0.3. The figures use 30 density contour lines ranging from 0.9–2.2. (a,b) Z; (c,d) MOZ.
Figure 12. The density contour of Rayleigh–Taylor instability problem at t = 1.95 using 120 × 480 and 250 × 1000 grid points. CFL = 0.3. The figures use 30 density contour lines ranging from 0.9–2.2. (a,b) Z; (c,d) MOZ.
Entropy 26 00334 g012
Figure 13. The density contour of the Richtmyer–Meshkova instability problem at t = 0.16 using 1200 × 200 grid points. CFL = 0.3. The figures use 30 density contour lines ranging from 0.2–3.2. (a,c,e) Results for Z weighting for cases with n = 20, 40, and 60, respectively; similarly, (b,d,f) are the results for MOZ weighting for cases with n = 20, 40, and 60, respectively.
Figure 13. The density contour of the Richtmyer–Meshkova instability problem at t = 0.16 using 1200 × 200 grid points. CFL = 0.3. The figures use 30 density contour lines ranging from 0.2–3.2. (a,c,e) Results for Z weighting for cases with n = 20, 40, and 60, respectively; similarly, (b,d,f) are the results for MOZ weighting for cases with n = 20, 40, and 60, respectively.
Entropy 26 00334 g013
Figure 14. Pressure contour lines of shock vortex interaction problem using 300 × 150 grid points. (a,b) Present the pressure distribution of Z weighting at t = 0.6 and t = 0.8, respectively; (c,d) present the pressure distribution of MOZ weighting at t = 0.6 and t = 0.8, respectively. There are 60 pressure contour lines ranging from 1.19∼13.7. CFL = 0.3.
Figure 14. Pressure contour lines of shock vortex interaction problem using 300 × 150 grid points. (a,b) Present the pressure distribution of Z weighting at t = 0.6 and t = 0.8, respectively; (c,d) present the pressure distribution of MOZ weighting at t = 0.6 and t = 0.8, respectively. There are 60 pressure contour lines ranging from 1.19∼13.7. CFL = 0.3.
Entropy 26 00334 g014
Figure 15. Pressure distribution for the line y = 0.5 across the center of the vortex at t = 0.6 using 300 × 150 grid points. (a) Pressure distribution using different weights. (b)Pressure zoomed in for the post-shock position. (c) Pressure zoomed in near the center of the vortex. (d) Pressure zoomed in for the pre-shock position. The reference solution is calculated using JS weights and 1600 × 800 grid points. (The red square symbol denotes Z weighting, the blue upper triangle denotes MOZ weighting, the blue long dash line denotes MOZ weighting (1600 × 800 grid points), the black solid line denotes the reference solution.)
Figure 15. Pressure distribution for the line y = 0.5 across the center of the vortex at t = 0.6 using 300 × 150 grid points. (a) Pressure distribution using different weights. (b)Pressure zoomed in for the post-shock position. (c) Pressure zoomed in near the center of the vortex. (d) Pressure zoomed in for the pre-shock position. The reference solution is calculated using JS weights and 1600 × 800 grid points. (The red square symbol denotes Z weighting, the blue upper triangle denotes MOZ weighting, the blue long dash line denotes MOZ weighting (1600 × 800 grid points), the black solid line denotes the reference solution.)
Entropy 26 00334 g015
Table 1. Errors and accuracy of nonlinear weighted interpolation method at first-order extreme point x = 0 for the case u = e 0.75 ( x 1 ) x 2 for grids of h = 2 m h 0 ( h 0 = 0.04 ) .
Table 1. Errors and accuracy of nonlinear weighted interpolation method at first-order extreme point x = 0 for the case u = e 0.75 ( x 1 ) x 2 for grids of h = 2 m h 0 ( h 0 = 0.04 ) .
WCNS-ZWCNS-MOZ
γ 0 = h min
WCNS-MOZ
γ 0 = 0.01
WCNS-MOZ
γ 0 = 0.5
WCNS-MOZ
γ 0 = 0.8
mErrorOrderErrorOrderErrorOrderErrorOrderErrorOrder
01.37 × 10 6 2.41 × 10 8 7.62 × 10 9 5.30 × 10 9 5.28 × 10 9
12.92 × 10 8 5.551.66 × 10 10 7.181.66 × 10 10 5.521.66 × 10 10 4.991.66 × 10 10 4.99
26.71 × 10 10 5.445.23 × 10 12 4.995.23 × 10 12 4.995.23 × 10 12 4.995.23 × 10 12 4.99
31.71 × 10 11 5.301.64 × 10 13 5.001.64 × 10 13 5.001.64 × 10 13 5.001.64 × 10 13 5.00
44.73 × 10 13 5.185.12 × 10 15 5.005.12 × 10 15 5.005.12 × 10 15 5.005.12 × 10 15 5.00
51.38 × 10 14 5.101.60 × 10 16 5.001.60 × 10 16 5.001.60 × 10 16 5.001.60 × 10 16 5.00
Table 2. Errors and accuracy of nonlinear weighted interpolation method at second-order extreme point x = 0 for the case u = e 0.75 ( x 1 ) x 3 for grids of h = 2 m h 0 ( h 0 = 0.04 ) .
Table 2. Errors and accuracy of nonlinear weighted interpolation method at second-order extreme point x = 0 for the case u = e 0.75 ( x 1 ) x 3 for grids of h = 2 m h 0 ( h 0 = 0.04 ) .
WCNS-ZWCNS-MOZ
γ 0 = h min
WCNS-MOZ
γ 0 = 0.01
WCNS-MOZ
γ 0 = 0.5
WCNS-MOZ
γ 0 = 0.8
mErrorOrderErrorOrderErrorOrderErrorOrderErrorOrder
07.50 × 10 4 2.80 × 10 8 2.80 × 10 8 2.80 × 10 8 2.80 × 10 8
11.84 × 10 4 2.038.86 × 10 10 4.988.86 × 10 10 4.988.86 × 10 10 4.988.86 × 10 10 4.98
24.35 × 10 5 2.082.78 × 10 11 4.992.78 × 10 11 4.992.78 × 10 11 4.992.78 × 10 11 4.99
39.44 × 10 6 2.208.73 × 10 13 5.008.73 × 10 13 5.008.73 × 10 13 5.008.73 × 10 13 5.00
41.94 × 10 6 2.282.73 × 10 14 5.002.73 × 10 14 5.002.73 × 10 14 5.002.73 × 10 14 5.00
54.30 × 10 7 2.188.55 × 10 16 5.008.55 × 10 16 5.008.55 × 10 16 5.008.55 × 10 16 5.00
Table 3. A comparison of CPU times obtained by solving the scalar equation with different nonlinear weights (the grid N is 1600).
Table 3. A comparison of CPU times obtained by solving the scalar equation with different nonlinear weights (the grid N is 1600).
Nonlinear WeightsJSZMOZ
CPU time0.484 s0.516 s0.531 s
Time ratio1.0001.0661.097
Table 4. For u ( x , 0 ) = e 300 ( x 0.5 ) 2 , t = 1 , the error and order of Z weighting and different linear weights of MOZ weighting.
Table 4. For u ( x , 0 ) = e 300 ( x 0.5 ) 2 , t = 1 , the error and order of Z weighting and different linear weights of MOZ weighting.
WCNS-MOZ { γ 1 = h m i n }
Grid Point Number L 1 L 2 L
ErrorOrderErrorOrderErrorOrder
111.25 × 10 1 2.31 × 10 1 6.83 × 10 1
217.69 × 10 2 0.701.59 × 10 1 0.544.59 × 10 1 0.57
411.31 × 10 2 2.553.35 × 10 2 2.251.08 × 10 1 2.08
811.25 × 10 3 3.392.90 × 10 3 3.539.02 × 10 3 3.59
1614.68 × 10 5 4.751.10 × 10 4 4.713.47 × 10 4 4.70
3211.45 × 10 6 5.013.44 × 10 6 5.001.09 × 10 5 5.00
WCNS-MOZ { γ 1 = 0.01 }
Grid Point Number L 1 L 2 L
ErrorOrderErrorOrderErrorOrder
111.24 × 10 1 2.30 × 10 1 6.79 × 10 1
217.50 × 10 2 0.731.55 × 10 1 0.574.49 × 10 1 0.60
411.19 × 10 2 2.653.11 × 10 2 2.321.01 × 10 1 2.16
811.29 × 10 3 3.212.92 × 10 3 3.418.97 × 10 3 3.49
1614.65 × 10 5 4.801.10 × 10 4 4.733.47 × 10 4 4.69
3211.45 × 10 6 5.013.44 × 10 6 5.001.09 × 10 5 5.00
WCNS-MOZ { γ 1 = 0.5 }
Grid Point Number L 1 L 2 L
ErrorOrderErrorOrderErrorOrder
111.18 × 10 1 2.22 × 10 1 6.48 × 10 1
216.68 × 10 2 0.821.40 × 10 1 0.674.02 × 10 1 0.69
419.17 × 10 3 2.862.83 × 10 2 2.309.36 × 10 2 2.10
811.26 × 10 3 2.862.89 × 10 3 3.298.93 × 10 3 3.39
1614.64 × 10 5 4.761.10 × 10 4 4.713.47 × 10 4 4.69
3211.45 × 10 6 5.003.44 × 10 6 5.001.09 × 10 5 5.00
WCNS-MOZ { γ 1 = 0.8 }
Grid Point Number L 1 L 2 L
ErrorOrderErrorOrderErrorOrder
111.16 × 10 1 2.19 × 10 1 6.36 × 10 1
216.45 × 10 2 0.851.35 × 10 1 0.703.89 × 10 1 0.71
419.06 × 10 3 2.832.82 × 10 2 2.269.35 × 10 2 2.06
811.25 × 10 3 2.862.88 × 10 3 3.298.93 × 10 3 3.39
1614.64 × 10 5 4.751.10 × 10 4 4.713.47 × 10 4 4.69
3211.45 × 10 6 5.003.44 × 10 6 5.001.09 × 10 5 5.00
WCNS-Z
Grid Point Number L 1 L 2 L
ErrorOrderErrorOrderErrorOrder
111.27 × 10 1 2.34 × 10 1 6.95 × 10 1
218.01 × 10 2 0.661.63 × 10 1 0.524.77 × 10 1 0.55
411.59 × 10 2 2.343.69 × 10 2 2.151.16 × 10 1 2.04
811.55 × 10 3 3.353.24 × 10 3 3.519.24 × 10 3 3.64
1614.74 × 10 5 5.041.11 × 10 4 4.873.49 × 10 4 4.73
3211.45 × 10 6 5.033.45 × 10 6 5.011.09 × 10 5 5.00
Table 5. For u t + u 2 2 x = 0 , u ( x , 0 ) = sin ( π x ) , t = 0.5 / π , the error and order of Z weighting and different linear weights of MOZ weighting.
Table 5. For u t + u 2 2 x = 0 , u ( x , 0 ) = sin ( π x ) , t = 0.5 / π , the error and order of Z weighting and different linear weights of MOZ weighting.
WCNS-MOZ { γ 1 = h m i n }
Grid Point Number L 1 L 2 L
ErrorOrderErrorOrderErrorOrder
118.23 × 10 4 1.36 × 10 3 2.95 × 10 3
212.33 × 10 4 1.824.34 × 10 4 1.659.74 × 10 4 1.60
411.14 × 10 5 4.362.50 × 10 5 4.129.88 × 10 5 3.30
813.11 × 10 7 5.197.37 × 10 7 5.083.47 × 10 6 4.83
1619.79 × 10 9 4.992.27 × 10 8 5.029.96 × 10 8 5.12
3212.95 × 10 10 5.056.60 × 10 10 5.113.15 × 10 9 4.98
WCNS-MOZ { γ 1 = 0.01 }
Grid Point Number L 1 L 2 L
ErrorOrderErrorOrderErrorOrder
118.35 × 10 4 1.42 × 10 3 3.13 × 10 3
212.33 × 10 4 1.844.48 × 10 4 1.661.02 × 10 3 1.61
411.03 × 10 5 4.502.45 × 10 5 4.199.88 × 10 5 3.37
812.97 × 10 7 5.127.32 × 10 7 5.063.47 × 10 6 4.83
1619.79 × 10 9 4.932.27 × 10 8 5.019.96 × 10 8 5.12
3212.95 × 10 10 5.056.60 × 10 10 5.113.15 × 10 9 4.98
WCNS-MOZ { γ 1 = 0.5 }
Grid Point Number L 1 L 2 L
ErrorOrderErrorOrderErrorOrder
111.13 × 10 3 1.91 × 10 3 4.10 × 10 3
212.08 × 10 4 2.444.58 × 10 4 2.061.14 × 10 3 1.85
419.54 × 10 6 4.452.92 × 10 5 4.249.88 × 10 5 3.52
812.96 × 10 7 5.017.31 × 10 7 5.053.47 × 10 6 4.83
1619.79 × 10 9 4.922.27 × 10 8 5.019.96 × 10 8 5.12
3212.95 × 10 10 5.056.60 × 10 10 5.113.15 × 10 9 4.98
WCNS-MOZ { γ 1 = 0.8 }
Grid Point Number L 1 L 2 L
ErrorOrderErrorOrderErrorOrder
111.23 × 10 3 1.95 × 10 3 3.82 × 10 3
212.09 × 10 4 2.564.56 × 10 4 2.101.14 × 10 3 1.74
419.54 × 10 6 4.452.42 × 10 5 4.239.88 × 10 5 3.53
812.96 × 10 7 5.017.31 × 10 7 5.053.47 × 10 6 4.83
1619.79 × 10 9 4.922.27 × 10 8 5.019.96 × 10 8 5.12
3212.95 × 10 10 5.056.60 × 10 10 5.113.15 × 10 9 4.98
WCNS-Z
Grid Point Number L 1 L 2 L
ErrorOrderErrorOrderErrorOrder
118.80 × 10 4 1.60 × 10 3 3.66 × 10 3
212.18 × 10 4 2.024.49 × 10 4 1.831.08 × 10 3 1.76
411.04 × 10 5 4.392.46 × 10 5 4.199.89 × 10 5 3.45
813.31 × 10 7 4.977.46 × 10 7 5.043.47 × 10 6 4.83
1611.08 × 10 8 4.932.35 × 10 8 4.989.96 × 10 8 5.12
3213.29 × 10 10 5.047.01 × 10 10 5.073.15 × 10 9 4.98
Table 6. Errors and convergence orders based on JS, Z, and MOZ weights for two-dimensional Euler vortex simulation, at t = 1 .
Table 6. Errors and convergence orders based on JS, Z, and MOZ weights for two-dimensional Euler vortex simulation, at t = 1 .
WCNS-JS
Grid Point Number L 1 L 2 L
ErrorOrderOrderErrorOrderError
418.88 × 10 5 3.19 × 10 4 1.06 × 10 5
811.16 × 10 5 2.948.05 × 10 5 1.992.94 × 10 3 0.44
1611.33 × 10 6 3.131.06 × 10 5 2.922.78 × 10 4 3.40
3218.41 × 10 8 3.986.84 × 10 7 3.951.88 × 10 5 3.89
6412.46 × 10 9 5.092.13 × 10 8 5.008.64 × 10 7 4.44
WCNS-Z
Grid Point Number L 1 L 2 L
ErrorOrderOrderErrorOrderError
415.48 × 10 5 1.89 × 10 4 9.26 × 10 6
819.01 × 10 6 2.616.74 × 10 5 1.492.34 × 10 3 0.31
1611.11 × 10 6 3.029.26 × 10 6 2.862.39 × 10 4 3.29
3215.60 × 10 8 4.315.47 × 10 7 4.081.88 × 10 5 3.67
6419.79 × 10 10 5.841.08 × 10 8 5.664.95 × 10 7 5.25
WCNS-MOZ
Grid Point Number L 1 L 2 L
ErrorOrderOrderErrorOrderError
413.09 × 10 5 1.21 × 10 4 2.51 × 10 6
813.52 × 10 6 3.132.37 × 10 5 2.365.77 × 10 4 1.62
1612.93 × 10 7 3.582.51 × 10 6 3.245.60 × 10 5 3.37
3217.17 × 10 9 5.357.27 × 10 8 5.112.61 × 10 6 4.43
6417.81 × 10 11 6.524.23 × 10 10 7.431.21 × 10 8 7.75
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

Bai, J.; Yan, Z.; Mao, M.; Ma, Y.; Jiang, D. Improvement of Z-Weighted Function Based on Fifth-Order Nonlinear Multi-Order Weighted Method for Shock Capturing of Hyperbolic Conservation Laws. Entropy 2024, 26, 334. https://doi.org/10.3390/e26040334

AMA Style

Bai J, Yan Z, Mao M, Ma Y, Jiang D. Improvement of Z-Weighted Function Based on Fifth-Order Nonlinear Multi-Order Weighted Method for Shock Capturing of Hyperbolic Conservation Laws. Entropy. 2024; 26(4):334. https://doi.org/10.3390/e26040334

Chicago/Turabian Style

Bai, Jinwei, Zhenguo Yan, Meiliang Mao, Yankai Ma, and Dingwu Jiang. 2024. "Improvement of Z-Weighted Function Based on Fifth-Order Nonlinear Multi-Order Weighted Method for Shock Capturing of Hyperbolic Conservation Laws" Entropy 26, no. 4: 334. https://doi.org/10.3390/e26040334

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