Abstract
We derive analytic solutions to the scalar and vector advection equation with variable coefficients in one spatial dimension using Laplace transform methods. These solutions are used to investigate how accuracy and stability are influenced by the presence of discontinuous wave speeds when applying high-order-accurate, skew-symmetric finite difference methods designed for smooth wave speeds. The methods satisfy a summation-by-parts rule with weak enforcement of boundary conditions and formal order of accuracy equal to 2, 3, 4 and 5. We study accuracy, stability and convergence rates for linear wave speeds that are (a) constant, (b) non-constant but smooth, (c) continuous with a discontinuous derivative, and (d) constant with a jump discontinuity. Cases (a) and (b) correspond to smooth wave speeds and yield stable schemes and theoretical convergence rates. Non-smooth wave speeds [cases (c) and (d)], however, reveal reductions in theoretical convergence rates and in the latter case, the presence of an instability.
Similar content being viewed by others
References
Carpenter, M.H., Gottlieb, D., Abarbanel, S.: Time-stable boundary conditions for finite-difference schemes solving hyperbolic systems: methodology and application to high-order compact schemes. J. Comput. Phys. 111(2), 220–236 (1994)
Erickson, B.A., Dunham, E.M.: An efficient numerical method for earthquake cycles in heterogeneous media: alternating subbasin and surface-rupturing events on faults crossing a sedimentary basin. J. Geophys. Res. Solid Earth 119, 3290–3316 (2014)
Fernández, D.C.D.R., Hicken, J.E., Zingg, D.W.: Review of summation-by-parts operators with simultaneous approximation terms for the numerical solution of partial differential equations. Comput. Fluids 95, 171–196 (2014)
Fisher, T.C., Carpenter, M.H., Nordström, J., Yamaleev, N.K., Swanson, C.: Discretely conservative finite-difference formulations for nonlinear conservation laws in split form: theory and boundary conditions. J. Comput. Phys. 234, 353–375 (2013)
Gassner, G.J.: A skew-symmetric discontinuous Galerkin spectral element discretization and its relation to SBP-SAT finite difference methods. SIAM J. Sci. Comput. 35(3), A1233–A1253 (2013)
Gassner, G.J., Winters, A.R., Kopriva, D.A.: A well balanced and entropy conservative discontinuous Galerkin spectral element method for the shallow water equations. App. Math. Comput. 272, 291–308 (2016)
Gustafsson, B.: High Order Difference Methods for Time Dependent PDE. Springer Series in Computational Mathematics. Springer, Berlin (2008)
Karlstrom, L., Dunham, E.M.: Excitation and resonance of acoustic-gravity waves in a column of stratified, bubbly magma. J. Fluid Mech. 797, 431–470 (2016)
Kopriva, D.A., Nordström, J., Gassner, G.J.: Error boundedness of discontinuous Galerkin spectral element approximations of hyperbolic problems. J. Sci. Comput. 72(1), 314–330 (2017). https://doi.org/10.1007/s10915-017-0358-2
Kozdon, J.E., Dunham, E.M., Nordström, J.: Interaction of waves with frictional interfaces using summation-by-parts difference operators: weak enforcement of nonlinear boundary conditions. J. Sci. Comput. 50(2), 341–367 (2012)
Kreiss, H.-O., Scherer, G.: Finite element and finite difference methods for hyperbolic partial differential equations. In: de Boor, C. (ed.) Mathematical Aspects of Finite Elements in Partial Differential Equations, pp. 195–212. Academic Press (1974)
Kreiss, H.-O., Scherer, G.: On the existence of energy estimates for difference approximations for hyperbolic systems. In: Technical report, Uppsala University Dept of Scientific Computing Uppsala, Sweden (1977)
La Cognata, C., Nordström, J.: Well-posedness, stability and conservation for a discontinuous interface problem. BIT 56(2), 681–704 (2016)
Le Veque, R.J.: Finite Volume Methods for Hyperbolic Problems. Cambridge Texts in Applied Mathematics. Cambridge University Press, Cambridge (2002)
Mishra, S., Svärd, M.: On stability of numerical schemes via frozen coefficients and the magnetic induction equations. BIT 50(1), 85–108 (2010). https://doi.org/10.1007/s10543-010-0249-5
Nordström, J.: Conservative finite difference formulations, variable coefficients, energy estimates and artificial dissipation. J. Sci. Comput. 29(3), 375–404 (2006)
Nordström, J.: Error bounded schemes for time-dependent hyperbolic problems. SIAM J. Sci. Comput. 30(1), 46–59 (2008). https://doi.org/10.1137/060654943
Nordström, J., Frenander, H.: On long time error bounds for the wave equation on second order form. J. Sci. Comput. 76(3), 1327–1336 (2018). https://doi.org/10.1007/s10915-018-0667-0
Nordström, J., Ruggiu, A.A.: On conservation and stability properties for summation-by-parts schemes. J. Comput. Phys. 344, 451–464 (2017)
Ranocha, H.: Shallow water equations: split-form, entropy stable, well-balanced, and positivity preserving numerical methods. GEM Int. J. Geomath. 8(1), 85–133 (2017)
Ranocha, H.: Generalised summation-by-parts operators and variable coefficients. J. Comput. Phys. 362, 20–48 (2018). https://doi.org/10.1016/j.jcp.2018.02.021
Ranocha, H., Öffner, P., Sonar, T.: Extended skew-symmetric form for summation-by-parts operators and varying Jacobians. J. Comput. Phys. 342, 13–28 (2017)
Strand, B.: Summation by parts for finite difference approximations for d/dx. J. Comput. Phys. 110(1), 47–67 (1994)
Svärd, M., Nordström, J.: Review of summation-by-parts schemes for initial-boundary-value problems. J. Comput. Phys. 268, 17–38 (2014)
Acknowledgements
This work benefited from helpful comments from two anonymous reviewers. B.A.E. was supported through the NSF under Award No. EAR-1547603.
Author information
Authors and Affiliations
Corresponding author
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Appendices
A Detailed Analytic Solutions
Below we provide detailed analytic solutions for the scalar and vector equations considered. The code for computing these is available online at https://github.com/brittany-erickson/analytic_wave/.
1.1 A.1 Analytic Solution to the Scalar Equation
The scalar equation (1) has analytic solution given by (14) which requires the calculation of \(I_a(x)\) and \(\xi (t,x)\) given by (2), (15), respectively. These are provided below for the four cases of wave speeds considered in Sect. 2.3.
For case 1,
For case 2,
For case 3,
where
For case 4,
where
1.2 A.2 Analytic Solution to the Vector Equation
The vector equation (37) with initial/boundary conditions given by (38)–(39) has analytic solution given by (55) which requires the calculation of \(I_a(x), I_b(x)\) and three characteristic variables \(\xi (t,x), \omega _n(t,x)\) and \(\gamma _n\) given by (2) and (56) respectively. These are provided below for the four cases of wave speeds considered in Sect. 3.4.
For case 1,
For case 2,
For case 3,
where
For case 4,
where
Including an Interface
By placing an interface at \(x = 1/2\), the vector equation (37) becomes
and
where \(\alpha = \sqrt{b^L(0)/a^L(0)}\), \(\beta = \sqrt{a^R(1)/b^R(1)}\). The energy method applied to (94)–(95) yields
and again we note that the first two terms on the right of (96) are zero if the wave speeds are continuous across the interface.
The discrete equations are given by
A discrete energy estimate can be obtained as in previous sections, yielding
where matrices
and vectors \(\mathbf{y}_0^T = [u_0^L \quad v_0^L], \mathbf{y}_N^T = [u_N^R \quad v_N^R], \mathbf{y}_1^T = [u_N^L \quad u_0^R], \mathbf{y}_2^T = [v_N^L \quad v_0^R]\). The semi-discrete estimate (98) mimics the continuous estimate (96), with some additional dissipation if the matrices (99) are negative semi-definite. This can be accomplished by choosing for the boundary SAT terms \(\sigma _1 = -a_0^L\), \(\sigma _6 = -b_N^R\), and interface penalties corresponding to full upwinding, namely \(\sigma _2 = \sigma _5 = 0\), \(\sigma _3 = -b_N^L, \sigma _4 = -a_0^R\).
Rights and permissions
About this article
Cite this article
Erickson, B.A., O’Reilly, O. & Nordström, J. Accuracy of Stable, High-order Finite Difference Methods for Hyperbolic Systems with Non-smooth Wave Speeds. J Sci Comput 81, 2356–2387 (2019). https://doi.org/10.1007/s10915-019-01088-w
Received:
Revised:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s10915-019-01088-w