On Error-Based Step Size Control for Discontinuous Galerkin Methods for Compressible Fluid Dynamics
Hendrik Ranocha , Andrew R. Winters , Hugo Guillermo Castro , Lisandro Dalcin , Michael Schlottke-Lakemper , Gregor J. Gassner , Matteo Parsani
Communications on Applied Mathematics and Computation ›› 2025, Vol. 7 ›› Issue (1) : 3 -39.
We study a temporal step size control of explicit Runge-Kutta (RK) methods for compressible computational fluid dynamics (CFD), including the Navier-Stokes equations and hyperbolic systems of conservation laws such as the Euler equations. We demonstrate that error-based approaches are convenient in a wide range of applications and compare them to more classical step size control based on a Courant-Friedrichs-Lewy (CFL) number. Our numerical examples show that the error-based step size control is easy to use, robust, and efficient, e.g., for (initial) transient periods, complex geometries, nonlinear shock capturing approaches, and schemes that use nonlinear entropy projections. We demonstrate these properties for problems ranging from well-understood academic test cases to industrially relevant large-scale computations with two disjoint code bases, the open source Julia packages Trixi.jl with OrdinaryDiffEq.jl and the C/Fortran code SSDC based on PETSc.
Explicit Runge-Kutta (RK) methods / Step size control / Compressible fluid dynamics / Adaptivity in space and time / Shock capturing / 65L06 / 65M20 / 65M70 / 76M10 / 76M22 / 76N99 / 35L50
| [1] |
Abhyankar, S., Brown, J., Constantinescu, E.M., Ghosh, D., Smith, B.F., Zhang, H.: PETSc/TS: A Modern Scalable ODE/DAE Solver Library. 1806.01437 (2018) |
| [2] |
Al Jahdali, R., Boukharfane, R., Dalcin, L., Parsani, M.: Optimized explicit Runge-Kutta schemes for entropy stable discontinuous collocated methods applied to the Euler and Navier-Stokes equations. In: AIAA Scitech 2021 Forum, AIAA 2021-0633 (2021). https://doi.org/10.2514/6.2021-0633 |
| [3] |
Balay, S., Abhyankar, S., Adams, M.F., Brown, J., Brune, P., Buschelman, K., Dalcin, L., Dener, A., Eijkhout, V., Gropp, W.D., Kaushik, D., Knepley, M.G., May, D.A., McInnes, L.C., Mills, R.T., Munson, T., Rupp, K., Sanan, P., Smith, B.F., Zampini, S., Zhang, H., Zhang, H.: PETSc users manual. Technical Report ANL-95/11 - Revision 3.13, Argonne National Laboratory (2020) |
| [4] |
Becker, T., Burovskiy, P., Nestorov, A.M., Palikareva, H., Reggiani, E., Gaydadjiev, G.: From exaflop to exaflow. In: Design, Automation & Test in Europe Conference & Exhibition (DATE), 2017, pp. 404–409. European Design and Automation Association, Leuven, IEEE (2017) |
| [5] |
|
| [6] |
|
| [7] |
|
| [8] |
|
| [9] |
|
| [10] |
|
| [11] |
|
| [12] |
|
| [13] |
Cenaero: HiOCFD5, 5th International Workshop on High-Order CFD Methods (2018). https://how5.cenaero.be |
| [14] |
|
| [15] |
|
| [16] |
|
| [17] |
|
| [18] |
|
| [19] |
|
| [20] |
Chu, J., Luckring, J.M.: Experimental surface pressure data obtained on $65^{\text{o}}$ delta wing across Reynolds number and Mach number ranges. NASA-TM-4645 (1996) |
| [21] |
|
| [22] |
|
| [23] |
|
| [24] |
|
| [25] |
|
| [26] |
|
| [27] |
|
| [28] |
|
| [29] |
|
| [30] |
Garres-Diaz, J., Diaz, M.J.C., Koellermeier, J., de Luna, T.M.: Shallow water moment models for bedload transport problems. arXiv: 2008.08449 (2020). https://doi.org/10.48550/arXiv.2008.08449 |
| [31] |
|
| [32] |
Grass, A.: Sediment transport by waves and currents. Technical Report FL29, SERC London Centre for Marine Technology (1981) |
| [33] |
|
| [34] |
|
| [35] |
|
| [36] |
|
| [37] |
|
| [38] |
Hairer, E., Nørsett, S.P., Wanner, G.: Solving Ordinary Differential Equations I: Nonstiff Problems. Springer Series in Computational Mathematics, vol. 8. Springer, Berlin, Heidelberg (2008). https://doi.org/10.1007/978-3-540-78862-1 |
| [39] |
Hairer, E., Wanner, G.: Solving Ordinary Differential Equations II: Stiff and Differential-Algebraic Problems. Springer Series in Computational Mathematics, vol. 14. Springer, Berlin, Heidelberg (2010). https://doi.org/10.1007/978-3-642-05221-7 |
| [40] |
|
| [41] |
Heinisch, P., Ostaszewski, K., Ranocha, H.: Towards green computing: a survey of performance and energy efficiency of different platforms using OpenCL. In: Proceedings of the International Workshop on OpenCL. IWOCL’20, April 2020, Munich (Germany). ACM, New York, NY, USA (2020). https://doi.org/10.1145/3388333.3403035 |
| [42] |
|
| [43] |
|
| [44] |
Hindenlang, F., Gassner, G.J.: A new entropy conservative two-point flux for ideal MHD equations derived from first principles. In: HONOM 2019: European Workshop on High Order Numerical Methods for Evolutionary PDEs, Theory and Applications (2019) |
| [45] |
Hudson, J.: Numerical techniques for morphodynamic modelling. PhD thesis, University of Reading, Berkshire, United Kingdom (2001) |
| [46] |
|
| [47] |
Hummel, D., Redeker, G.: A new vortex flow experiment for computer code validation. RTO/AVT Symposium on Vortex Flow and High Angle of Attack Aerodynamics, Meeting Proc. RTO-MP-069, 8–31 (2003) |
| [48] |
Karniadakis, G.E., Sherwin, S.: Spectral/hp Element Methods for Computational Fluid Dynamics. Oxford University Press, Oxford (2013). https://doi.org/10.1093/acprof:oso/9780198528692.001.0001 |
| [49] |
|
| [50] |
|
| [51] |
|
| [52] |
|
| [53] |
|
| [54] |
|
| [55] |
|
| [56] |
|
| [57] |
|
| [58] |
|
| [59] |
|
| [60] |
|
| [61] |
|
| [62] |
|
| [63] |
Meister, A., Ortleb, S., Sonar, T., Wirz, M.: An extended discontinuous Galerkin and spectral difference method with modal filtering. Zeitschrift für Angewandte Mathematik und Mechanik 93(6/7), 459–464 (2013). https://doi.org/10.1002/zamm.201200051 |
| [64] |
Meyer-Peter, E., Müller, R.: Formulas for bed-load transport. In: IAHSR 2nd Meeting, Stockholm, Appendix 2, IAH (1948) |
| [65] |
|
| [66] |
|
| [67] |
|
| [68] |
|
| [69] |
|
| [70] |
|
| [71] |
|
| [72] |
Persson, P.-O., Peraire, J.: Sub-cell shock capturing for discontinuous Galerkin methods. In: 44th AIAA Aerospace Sciences Meeting and Exhibit, AIAA 2006-112. AIAA (2006). https://doi.org/10.2514/6.2006-112 |
| [73] |
|
| [74] |
|
| [75] |
|
| [76] |
|
| [77] |
Ranocha, H., Schlottke-Lakemper, M., Chan, J., Rueda-Ramirez, A.M., Winters, A.R., Hindenlang, F., Gassner, G.J.: Efficient implementation of modern entropy stable and kinetic energy preserving discontinuous Galerkin methods for conservation laws (2021). arXiv: 2112.10517 |
| [78] |
Ranocha, H., Schlottke-Lakemper, M., Winters, A.R., Faulhaber, E., Chan, J., Gassner, G.: Adaptive numerical simulations with Trixijl: a case study of Julia for scientific computing. JuliaCon Proceedings 1(1), 77 (2022). https://doi.org/10.21105/jcon.00077 |
| [79] |
Ranocha, H., Winters, A.R., Castro, H.G., Dalcin, L., Schlottke-Lakemper, M., Gassner, G.J., Parsani, M.: Reproducibility repository for “on error-based step size control for discontinuous Galerkin methods for compressible fluid dynamics”. https://github.com/trixi-framework/paper-2022-stepsize_control (2022). https://doi.org/10.5281/zenodo.7078946 |
| [80] |
Ranocha, H.: Generalised summation-by-parts operators and entropy stability of numerical methods for hyperbolic balance laws. PhD thesis, TU Braunschweig, Braunschweig (February 2018) |
| [81] |
Ranocha, H.: Entropy conserving and kinetic energy preserving numerical methods for the Euler equations using summation-by-parts operators. In: Sherwin, S.J., Moxey, D., Peiró, J., Vincent, P.E., Schwab, C. (eds.) Spectral and High Order Methods for Partial Differential Equations ICOSAHOM 2018. Lecture Notes in Computational Science and Engineering, vol. 134, pp. 525–535. Springer, Cham (2020). https://doi.org/10.1007/978-3-030-39647-3_42 |
| [82] |
|
| [83] |
|
| [84] |
|
| [85] |
|
| [86] |
|
| [87] |
Sonntag, M., Munz, C.-D.: Shock capturing for discontinuous Galerkin methods using finite volume subcells. In: Fuhrmann, J., Ohlberger, M., Rohde, C. (eds.) Finite Volumes for Complex Applications VII-Elliptic, Parabolic and Hyperbolic Problems. Springer Proceedings in Mathematics & Statistics, vol. 78, pp. 945–953. Springer, Cham (2014). https://doi.org/10.1007/978-3-319-05591-6_96 |
| [88] |
|
| [89] |
|
| [90] |
|
| [91] |
|
| [92] |
|
| [93] |
Vincent, P., Witherden, F., Vermeire, B., Park, J.S., Iyer, A.: Towards green aviation with Python at petascale. In: SC’16: Proceedings of the International Conference for High Performance Computing, Networking, Storage and Analysis, IEEE, pp. 1–11 (2016). https://doi.org/10.1109/SC.2016.1 |
| [94] |
|
| [95] |
|
| [96] |
|
| [97] |
|
| [98] |
|
| [99] |
|
The Author(s)
/
| 〈 |
|
〉 |