Skip to main content
Log in

Efficient Alternative Finite Difference WENO Schemes for Hyperbolic Conservation Laws

  • Original Paper
  • Published:
Communications on Applied Mathematics and Computation Aims and scope Submit manuscript

Abstract

Higher order finite difference Weighted Essentially Non-Oscillatory (FD-WENO) schemes for conservation laws are extremely popular because, for multidimensional problems, they offer high order accuracy at a fraction of the cost of finite volume WENO or DG schemes. Such schemes come in two formulations. The very popular classical FD-WENO method (Shu and Osher J Comput Phys 83: 32–78, 1989) relies on two reconstruction steps applied to two split fluxes. However, the method cannot accommodate different types of Riemann solvers and cannot preserve free stream boundary conditions on curvilinear meshes. This limits its utility. The alternative FD-WENO (AFD-WENO) method can overcome these deficiencies, however, much less work has been done on this method. The reasons are three-fold. First, it is difficult for the casual reader to understand the intricate logic that requires higher order derivatives of the fluxes to be evaluated at zone boundaries. The analytical methods for deriving the update equation for AFD-WENO schemes are somewhat recondite. To overcome that difficulty, we provide an easily accessible script that is based on a computer algebra system in Appendix A of this paper. Second, the method relies on interpolation rather than reconstruction, and WENO interpolation formulae have not been documented in the literature as thoroughly as WENO reconstruction formulae. In this paper, we explicitly provide all necessary WENO interpolation formulae that are needed for implementing the AFD-WENO up to the ninth order. The third reason is that the AFD-WENO requires higher order derivatives of the fluxes to be available at zone boundaries. Since those derivatives are usually obtained by finite differencing the zone-centered fluxes, they become susceptible to a Gibbs phenomenon when the solution is non-smooth. The inclusion of those fluxes is also crucially important for preserving the order property when the solution is smooth. This has limited the utility of the AFD-WENO in the past even though the method per se has many desirable features. Some efforts to mitigate the effect of finite differencing of the fluxes have been tried, but so far they have been done on a case by case basis for the PDE being considered. In this paper we find a general-purpose strategy that is based on a different type of the WENO interpolation. This new WENO interpolation takes the first derivatives of the fluxes at zone centers as its inputs and returns the requisite non-linearly hybridized higher order derivatives of flux-like terms at the zone boundaries as its output. With these three advances, we find that the AFD-WENO becomes a robust and general-purpose solution strategy for large classes of conservation laws. It allows any Riemann solver to be used. The AFD-WENO has a computational complexity that is entirely comparable to the classical FD-WENO, because it relies on two interpolation steps which cost the same as the two reconstruction steps in the classical FD-WENO. We apply the method to several stringent test problems drawn from Euler flow, relativistic hydrodynamics (RHD), and ten-moment equations. The method meets its design accuracy for smooth flow and can handle stringent problems in one and multiple dimensions.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11
Fig. 12
Fig. 13
Fig. 14
Fig. 15
Fig. 16
Fig. 17
Fig. 18
Fig. 19
Fig. 20
Fig. 21
Fig. 22
Fig. 23
Fig. 24

Similar content being viewed by others

Data Availability

All data that was used in the generation of the figures has been stored and available for later use.

References

  1. Anile, A.M.: Relativistic Fluids and Magneto-Fluids: with Applications in Astrophysics and Plasma Physics. Cambridge University Press, Cambridge (1989)

    Google Scholar 

  2. Arbogast, T., Huang, C.-S., Zhao, X.: Accuracy of WENO and adaptive order WENO reconstructions for solving conservation laws. SIAM J. Numer. Anal. 56(3), 1818–1847 (2018)

    Article  MathSciNet  Google Scholar 

  3. Balsara, D.S.: Total variation diminishing algorithm for adiabatic and isothermal magnetohydrodynamics. Astrophys. J. Suppl. 116, 133–153 (1998)

    Article  Google Scholar 

  4. Balsara, D.S.: Second order accurate schemes for magnetohydrodynamics with divergence-free reconstruction. Astrophys. J. Suppl. 151(1), 149–184 (2004)

    Article  Google Scholar 

  5. Balsara, D.S.: Self-adjusting, positivity preserving high order schemes for hydrodynamics and magnetohydrodynamics. J. Comput. Phys. 231, 7504–7517 (2012)

    Article  MathSciNet  Google Scholar 

  6. Balsara, D.S., Bhoriya, D., Shu, C.-W., Kumar, H.: Efficient finite difference WENO scheme for hyperbolic systems with non-conservative products. Commun. Appl. Math. Comput. (2023). https://doi.org/10.1007/s42967-023-00275-9

    Article  Google Scholar 

  7. Balsara, D.S., Garain, S., Florinski, V., Boscheri, W.: An efficient class of WENO schemes with adaptive order for unstructured meshes. J. Comput. Phys. 404, 109062 (2020)

    Article  MathSciNet  Google Scholar 

  8. Balsara, D.S., Garain, S., Shu, C.-W.: An efficient class of WENO schemes with adaptive order. J. Comput. Phys. 326, 780–804 (2016)

    Article  MathSciNet  Google Scholar 

  9. Balsara, D.S., Kim, J.: A subluminal relativistic magnetohydrodynamics scheme with ADER-WENO predictor and multidimensional Riemann solver-based corrector. J. Comput. Phys. 312, 357–384 (2016)

    Article  MathSciNet  Google Scholar 

  10. Balsara, D.S., Rumpf, T., Dumbser, M., Munz, C.-D.: Efficient, high-accuracy ADER-WENO schemes for hydrodynamics and divergence-free magnetohydrodynamics. J. Comput. Phys. 228, 2480 (2009)

    Article  MathSciNet  Google Scholar 

  11. Balsara, D.S., Samantaray, S., Subramanian, S.: Efficient WENO-based prolongation strategies for divergence-preserving vector fields. Commun. Appl. Math. Comput. 5(1), 428–484 (2022)

    Article  MathSciNet  Google Scholar 

  12. Balsara, D.S., Shu, C.-W.: Monotonicity preserving weighted non-oscillatory schemes with increasingly high order of accuracy. J. Comput. Phys. 160, 405–452 (2000)

    Article  MathSciNet  Google Scholar 

  13. Berberich, J.P., Käppeli, R., Chandrashekar, P., Klingenberg, C.: High order discretely well-balanced methods for arbitrary hydrostatic atmospheres. Commun. Comput. Phys. 30(3), 666–708 (2021)

    Article  MathSciNet  Google Scholar 

  14. Bhoriya, D., Kumar, H.: Entropy-stable schemes for relativistic hydrodynamics equations. Z. Angew. Math. Phys. 71, 1–29 (2020)

    Article  MathSciNet  Google Scholar 

  15. Biswas, B., Kumar, H., Bhoriya, D.: Entropy stable discontinuous Galerkin schemes for the special relativistic hydrodynamics equations. Comput. Math. Appl. 112, 55–75 (2022)

    Article  MathSciNet  Google Scholar 

  16. Biswas, B., Kumar, H., Yadav, A.: Entropy stable discontinuous Galerkin methods for ten-moment Gaussian closure equations. J. Comput. Phys. 431, 110148 (2021)

    Article  MathSciNet  Google Scholar 

  17. Borges, R., Carmona, M., Costa, B., Don, W.S.: An improved weighted essentially non-oscillatory scheme for hyperbolic conservation laws. J. Comput. Phys. 227(6), 3101–3211 (2008)

    Article  MathSciNet  Google Scholar 

  18. Boscheri, W., Balsara, D.S.: High order direct arbitrary-Lagrangian-Eulerian (ALE) \({P_N}{P_M}\) schemes on unstructured meshes. J. Comput. Phys. 398, 108899 (2019)

    Article  MathSciNet  Google Scholar 

  19. Carlini, E., Ferretti, R., Russo, G.: A weighted essentially nonoscillatory, large time-step scheme for Hamilton-Jacobi equations. SIAM J. Sci. Comput. 27, 1071–1091 (2005)

    Article  MathSciNet  Google Scholar 

  20. Castro, M., Costa, B., Don, W.S.: High order weighted essentially non-oscillatory WENO-Z schemes for hyperbolic conservation laws. J. Comput. Phys. 230, 1766–1792 (2011)

    Article  MathSciNet  Google Scholar 

  21. Colella, P., Woodward, P.R.: The piecewise parabolic method (PPM) for gas-dynamical simulations. J. Comput. Phys. 54(1), 174–201 (1984)

    Article  Google Scholar 

  22. Cravero, I., Semplice, M.: On the accuracy of WENO and CWENO reconstructions of third order on nonuniform meshes. J. Sci. Comput. 67(3), 1219–1246 (2016)

    Article  MathSciNet  Google Scholar 

  23. Duan, J.M., Tang, H.Z.: High-order accurate entropy stable finite difference schemes for one- and two-dimensional special relativistic hydrodynamics. Adv. Appl. Math. Mech. 12(1), 1–29 (2019)

    MathSciNet  Google Scholar 

  24. Dumbser, M., Balsara, D.S.: A new efficient formulation of the HLLEM Riemann solver for general conservative and non-conservative hyperbolic systems. J. Comput. Phys. 304, 275–319 (2016)

    Article  MathSciNet  Google Scholar 

  25. Gao, Z., Fang, L.-L., Wang, B.-S., Wang, Y., Don, W.S.: Seventh and ninth orders characteristic-wise alternative WENO finite difference schemes for hyperbolic conservation laws. Comput. Fluids 202, 104519 (2020)

    Article  MathSciNet  Google Scholar 

  26. Gerolymos, G.A., Sénéchal, D., Vallet, I.: Very high order WENO schemes. J. Comput. Phys. 228, 8481–8524 (2009)

    Article  MathSciNet  Google Scholar 

  27. Grosheintz-Laval, L., Käppeli, R.: Well-balanced finite volume schemes for nearly steady adiabatic flows. J. Comput. Phys. 423, 109805 (2020)

    Article  MathSciNet  Google Scholar 

  28. Harten, A., Engquist, B., Osher, S., Chakravarthy, S.: Uniformly high order essentially non-oscillatory schemes III. J. Comput. Phys. 71, 231–303 (1987)

    Article  MathSciNet  Google Scholar 

  29. He, P., Tang, H.: An adaptive moving mesh method for two-dimensional relativistic hydrodynamics. Commun. Comput. Phys. 11(1), 114–146 (2012)

    Article  MathSciNet  Google Scholar 

  30. Henrick, A.K., Aslam, T.D., Powers, J.M.: Mapped weighted essentially non-oscillatory schemes: achieving optimal order near critical points. J. Comput. Phys. 207, 542–567 (2006)

    Article  Google Scholar 

  31. Jiang, G.-S., Shu, C.-W.: Efficient implementation of weighted ENO schemes. J. Comput. Phys. 126, 202–228 (1996)

    Article  MathSciNet  Google Scholar 

  32. Jiang, Y., Shu, C.-W., Zhang, M.: An alternative formulation of finite difference ENO schemes with Lax-Wendroff time discretization for conservation laws. SIAM J. Sci. Comput. 35(2), A1137–A1160 (2013)

    Article  MathSciNet  Google Scholar 

  33. Jiang, Y., Shu, C.-W., Zhang, M.: Free-stream preserving finite-difference schemes on curvilinear meshes. Methods Appl. Anal. 21(1), 001–030 (2014)

    Article  MathSciNet  Google Scholar 

  34. Käppeli, R.: Well-balanced methods for computational astrophysics. Living Rev. Comput. Astrophys. 8(2), 1–88 (2022)

    Google Scholar 

  35. Käppeli, R., Mishra, S.: Well-balanced schemes for the Euler equations with gravitation. J. Comput. Phys. 259, 199–219 (2014)

    Article  MathSciNet  Google Scholar 

  36. Kumar, R., Chandrashekar, P.: Simple smoothness indicator and multi-level adaptive order WENO scheme for hyperbolic conservation laws. J. Comput. Phys. 375, 1059–1090 (2018)

    Article  MathSciNet  Google Scholar 

  37. Kumar, R., Chandrashekar, P.: Efficient seventh order WENO schemes of adaptive order for hyperbolic conservation laws. Comput. Fluids 190, 49–76 (2019)

    Article  MathSciNet  Google Scholar 

  38. Kupka, F., Happenhofer, N., Higueras, I., Koch, O.: Total-variation-diminishing implicit-explicit Runge-Kutta methods for the simulation of double-diffusive convection in astrophysics. J. Comput. Phys. 231, 3561–3586 (2012)

    Article  Google Scholar 

  39. Lax, P.D.: Weak solutions of nonlinear hyperbolic equations and their numerical computation. Commun. Pure Appl. Math. 7(1), 159–193 (1954)

    Article  MathSciNet  Google Scholar 

  40. Levy, D., Puppo, G., Russo, G.: Compact central WENO schemes for multidimensional conservation laws. SIAM J. Sci. Comput. 22, 656–672 (2000)

    Article  MathSciNet  Google Scholar 

  41. Ling, D., Duan, J.M., Tang, H.Z.: Physical-constraints-preserving Lagrangian finite volume schemes for one- and two-dimensional special relativistic hydrodynamics. J. Comput. Phys. 396, 507–543 (2019)

    Article  MathSciNet  Google Scholar 

  42. Liska, R., Wendroff, B.: Comparison of several difference schemes on 1D and 2D test problems for the Euler equations. SIAM J. Sci. Comput. 25(3), 995–1017 (2003)

    Article  MathSciNet  Google Scholar 

  43. Liu, X.-D., Osher, S., Chan, T.: Weighted essentially non-oscillatory schemes. J. Comput. Phys. 115, 200–212 (1994)

    Article  MathSciNet  Google Scholar 

  44. Martí, M.J., Müller, E.: Numerical hydrodynamics in special relativity. Living Rev. Relat. 6(1), 7 (2003)

    Article  MathSciNet  Google Scholar 

  45. Meena, A.K., Kumar, H., Chandrashekar, P.: Positivity-preserving high-order discontinuous Galerkin schemes for ten-moment Gaussian closure equations. J. Comput. Phys. 339, 370–395 (2017)

    Article  MathSciNet  Google Scholar 

  46. Merriman, B.: Understanding the Shu-Osher conservative finite difference form. J. Sci. Comput. 19(1/2/3), 309 (2003)

    Article  MathSciNet  Google Scholar 

  47. Mignone, A., Bodo, G.: An HLLC Riemann solver for relativistic flows I. Hydrodynamics. Mon. Notices R. Astron. Soc. 364(1), 126–136 (2005)

    Article  Google Scholar 

  48. Pao, S.P., Salas, M.D.: A numerical study of two-dimensional shock-vortex interaction. In: 14th Fluid and Plasma Dynamics Conference, AIAA 81-1205 (1981)

  49. Pareschi, L., Russo, G.: Implicit-explicit Runge-Kutta schemes and applications to hyperbolic systems with relaxation. J. Sci. Comput. 25, 129 (2005)

    MathSciNet  Google Scholar 

  50. Sebastian, K., Shu, C.-W.: Multidomain WENO finite difference method with interpolation at sub-domain interfaces. J. Sci. Comput. 19, 405–438 (2003)

    Article  MathSciNet  Google Scholar 

  51. Semplice, M., Coco, A., Russo, G.: Adaptive mesh refinement for hyperbolic systems based on third-order compact WENO reconstruction. J. Sci. Comput. 66(2), 692–724 (2016)

    Article  MathSciNet  Google Scholar 

  52. Sen, C., Kumar, H.: Entropy stable schemes for ten-moment Gaussian closure equations. J. Sci. Comput. 75(2), 1128–1155 (2018)

    Article  MathSciNet  Google Scholar 

  53. Shu, C.-W.: High order weighted essentially non-oscillatory schemes for convection dominated problems. SIAM Rev. 51, 82–126 (2009)

    Article  MathSciNet  Google Scholar 

  54. Shu, C.-W.: Essentially non-oscillatory and weighted essentially non-oscillatory schemes. Acta Numer. 29, 701–762 (2020)

    Article  MathSciNet  Google Scholar 

  55. Shu, C.-W., Osher, S.J.: Efficient implementation of essentially non-oscillatory shock capturing schemes. J. Comput. Phys. 77, 439–471 (1988)

    Article  MathSciNet  Google Scholar 

  56. Shu, C.-W., Osher, S.J.: Efficient implementation of essentially non-oscillatory shock capturing schemes II. J. Comput. Phys. 83, 32–78 (1989)

    Article  MathSciNet  Google Scholar 

  57. Sod, G.A.: A survey of several finite difference methods for systems of nonlinear hyperbolic conservation laws. J. Comput. Phys. 27(1), 1–31 (1978)

    Article  MathSciNet  Google Scholar 

  58. Spiteri, R.J., Ruuth, S.J.: A new class of optimal high-order strong-stability-preserving time-stepping schemes. SIAM J. Numer. Anal. 40, 469–491 (2002)

    Article  MathSciNet  Google Scholar 

  59. Spiteri, R.J., Ruuth, S.J.: Non-linear evolution using optimal fourth-order strong-stability-preserving Runge-Kutta methods. Math. Comput. Simul. 62, 125–135 (2003)

    Article  MathSciNet  Google Scholar 

  60. Woodward, P., Colella, P.: The numerical simulation of two-dimensional fluid flow with strong shocks. J. Comput. Phys. 54, 115–173 (1984)

    Article  MathSciNet  Google Scholar 

  61. Zheng, F., Shu, C.-W., Qiu, J.: A high order conservative finite difference scheme for compressible two-medium flows. J. Comput. Phys. 445, 110597 (2021)

    Article  MathSciNet  Google Scholar 

  62. Zhu, J., Qiu, J.: A new fifth order finite difference WENO scheme for solving hyperbolic conservation laws. J. Comput. Phys. 318, 110–121 (2016)

    Article  MathSciNet  Google Scholar 

  63. Zhu, J., Shu, C.-W.: A new type of multi-resolution WENO schemes with increasingly higher order of accuracy. J. Comput. Phys. 375, 659–683 (2018)

    Article  MathSciNet  Google Scholar 

Download references

Acknowledgements

DSB acknowledges support via the NSF grant, the NSF-AST-2009776, NASA-2020-1241 and the NASA grant 80NSSC22K0628. DSB and HK acknowledge support from a Vajra award, VJR/2018/00129 and also a travel grant from Notre Dame International. CWS acknowledges support via the NSF grant DMS-2309249.

Funding

The funding has been acknowledged. DSB acknowledges support via the NSF grants NSF-19-04774, NSF-AST-2009776, NASA-2020-1241, and (NASA-80NSSC22K0628). DSB and HK acknowledge support from a Vajra award (VJR/2018/00129). CWS acknowledges support via the NSF grant DMS-2309249.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Dinshaw S. Balsara.

Ethics declarations

Conflict of Interest

On behalf of all authors, the corresponding author states that there is no conflict of interest.

Ethical Standards

This manuscript complies with all ethical standards for scientific publishing.

Ethical Approval

Not applicable.

Informed Consent

Not applicable.

Appendices

Appendix A Mathematica Script for the Derivation of a Fifth Order AFD-WENO Scheme

We present the Mathematica script for understanding the formulae in Shu and Osher [55]. The script is extensible to all orders.

figure a
figure b

Appendix B Flattener Function for the Ten-Moment Rarefied Gas Flow Model

The flattening algorithm is employed in simulations to identify regions of strong shocks within the computational domain. The algorithm aims to improve the simulation accuracy by reducing numerical artifacts near discontinuities. The flattener functions rely on comparing the divergence of the velocity field to a characteristic speed associated with the specific problem being solved. For the Euler flows, such functions have been previously defined by Colella and Woodward [21] and Balsara [5]. For the Relativistic Magneto-hydrodynamics equations, a flattener has been presented in Balsara and Kim [9]. Along the same lines, we give a flattener function for the ten-moment model. The method begins by calculating the divergence of the velocity, \((\nabla \cdot {\mathbf{v}})_{i,j}\), and sound-like speed \(c_{s;i,j}\) (some approximation of the characteristic speed), within a specific zone \((i,j)\). In the two-dimensional cartesian mesh, the quantities are defined by

$$(\nabla \cdot {\mathbf{v}})_{i,j} = \frac{{v_{x;i + 1,j} - v_{x;i - 1,j} }}{\Delta x} + \frac{{v_{y;i,j + 1} - v_{y;i,j - 1} }}{\Delta y},$$

\(c_{s;i,j} = \sqrt {\frac{{P_{i,j} }}{{\rho_{i,j} }},} \quad {\text{where}}\quad P_{i,j} = \sqrt {p_{xx;i,j} p_{yy;i,j} - p_{xy;i,j}^{2} }.\)

To detect a shock, the undivided divergence of the velocity within a zone must be compared to the minimum sound-like speed in the zone \((i,j)\) and its immediate neighbors. The minimum sound-like speed from all the neighbors is obtained as follows:

$$c_{s;i,j}^{{\text{min-nbr}}} = \min (c_{s;i - 1,j - 1} ,c_{s;i - 1,j} ,c_{s;i - 1,j + 1} ,c_{s;i,j - 1} ,c_{s;i,j} ,c_{s;i,j + 1} ,c_{s;i + 1,j - 1} ,c_{s;i + 1,j} ,c_{s;i + 1,j + 1} ).$$

In each zone with an extent of \(\Delta x\) and \(\Delta y\), the flattener function is defined as

$$\eta_{i,j} = {\text{min}}\left[ {1,{\text{max}}\left[ {0,\frac{{|\left( {\nabla \cdot {\mathbf{v}}} \right)_{i,j} |{\text{ max}}(\Delta x,\Delta y)}}{{\kappa c_{s;i,j}^{{\text{min-nbr}}} }} - 1} \right]} \right]{.}$$

The parameter \(\kappa\) is set to 0.3, which has been found to work well across different orders and problem types. The flattener function does not modify the reconstruction when the flow is smooth or consists of rarefactions, and in that case, \(\eta_{i,j} = 0.\) However, the flattener function gradually increases from \(\eta_{i,j} = 0\) to \(\eta_{i,j} = 1\) when strong shocks are present.

The inclusion of pressure variation in the flattener algorithm allows for a more comprehensive stabilization of the flow simulation. It ensures that not only the zones already influenced by shocks but also the zones on edge receive appropriate flattening treatment. This improvement helps maintain numerical stability and accuracy throughout the simulation, particularly in regions where shocks are forming or propagating. In the x-direction, the flattener can be extended to the neighboring cell if the following conditions are satisfied:

$$\begin{gathered} {\text{if }}\left( {\left( {\eta_{i,j} > 0} \right){\text{ and }}\left( {\eta_{i + 1,j} = 0} \right){\text{ and }}\left( {P_{i,j} > P_{i + 1,j} } \right)} \right),{\text{ then }}\eta_{i + 1,j} = \eta_{i,j}; \hfill \\ {\text{if }}\left( {\left( {\eta_{i,j} > 0} \right){\text{ and }}\left( {\eta_{i - 1,j} = 0} \right){\text{ and }}\left( {P_{i,j} > P_{i - 1,j} } \right)} \right),{\text{ then }}\eta_{i - 1,j} = \eta_{i,j} . \hfill \\ \end{gathered}$$

In situations involving multi-dimensional problems, the above strategy can be applied to each of the principal directions of the mesh.

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Balsara, D.S., Bhoriya, D., Shu, CW. et al. Efficient Alternative Finite Difference WENO Schemes for Hyperbolic Conservation Laws. Commun. Appl. Math. Comput. (2024). https://doi.org/10.1007/s42967-023-00360-z

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1007/s42967-023-00360-z

Keywords

Mathematics Subject Classification

Navigation