Order of accuracy & Stability
Version 1.0.0 (11.4 KB) by
Manuel A. Diaz
This snippet shows how I examine the order of accuracy (OOA) and the numerical stability for a given numerical scheme.
In this snippet I examine the OOA and the stability for Lele's 6th-order numerical scheme [1] using a challeging stationary-wave problem proposed by Brady & Livescu (2019) [2] using the one-dimensional system of the wave equation.
Refs:
[1] Lele, Sanjiva K. "Compact finite difference schemes with spectral-like resolution." Journal of computational physics103.1 (1992): 16-42.
[2] Brady, Peter T., and Daniel Livescu. "High-order, stable, and conservative boundary schemes for central and compact finite differences." Computers & Fluids 183 (2019): 84-101.
Cite As
Manuel A. Diaz (2024). Order of accuracy & Stability (https://www.mathworks.com/matlabcentral/fileexchange/118140-order-of-accuracy-stability), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2022b
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Acknowledgements
Inspired by: Easy build compact schemes , Easy build finite-difference operators, compact schemes
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0 |