A one-dimensional implementation of 5th-order WENO scheme as introduced by
 Shu, Chi-Wang. "Essentially non-oscillatory and weighted essentially non-oscillatory schemes for hyperbolic conservation laws." Advanced numerical approximation of nonlinear hyperbolic equations. Springer, Berlin, Heidelberg, 1998. 325-432.
 Jiang, Guang-Shan, and Cheng-chin Wu. "A high-order WENO finite difference scheme for the equations of ideal magnetohydrodynamics." Journal of Computational Physics 150.2 (1999): 561-594. The present code is intended to be a guide to the implementation of the method.
It exemplifies the implementation of the component-wise reconstruction for finite-difference (FD) and finite-volume (FV) methods. In this update, I also include the characteristic-wise reconstruction in FV methodology.
As always, the philosophy behind this code is to be readable rather than efficient. Here, I dedicate this example to all the CFD students starting their path in numerical methods. Manuel A. Diaz (June 2018)
Manuel A. Diaz (2021). Weighted Essentially Non-Oscillatory (WENO) Scheme for Euler (https://www.mathworks.com/matlabcentral/fileexchange/56905-weighted-essentially-non-oscillatory-weno-scheme-for-euler), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!