Lax Wendroff 1D Burgers

Lax Wendroff scheme derived from Taylor-Galerkin procedure
334 Downloads
Updated 26 Mar 2018

View License

Simple implementation of the Taylor-Galerkin discretization for the 1D Burgers equation, which reduces to the Lax-Wendroff scheme when the element size is constant. Description of derivation included. For a practical usage, run a coarse mesh/time-step size combination and, based on the max(abs(u)), re-estimate dt using a finer mesh and CFL = 0.8. Although a higher value is technically more accurate, in practise the spurious oscillations (typical of LW scheme for hyperbolic conservation) impose and additional, hard-to-predict penalty on stability. Implementation of a "real" viscous term helps controlling the oscillations, but imposes another restriction on mesh/time-step size ratio (B = u_max*((dt^2)/(dx^2)) ). Remark that, even with oscillating solution near discontinuities, it is still better at capturing shocks than 1st order upwinding methods.

Cite As

Lucas Gasparino (2026). Lax Wendroff 1D Burgers (https://www.mathworks.com/matlabcentral/fileexchange/66642-lax-wendroff-1d-burgers), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2016a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Simscape Electrical in Help Center and MATLAB Answers
Version Published Release Notes
1.0.0.0