File Exchange

image thumbnail

1D Non-Linear Convection

version 1.0 (1.94 KB) by

Simulating a travelling shock-front in 1D by finite differencing.

10 Downloads

Updated

View License

The non-linear convection equation is simulated in conservative form using various finite difference schemes(Lax-Friedrichs, Lax-Wendroff, MacCormack and an implicit Beam-Warming with a fourth order explicit artificial viscosity term). The initial condition used is an Heaviside step function and the wave is expected to travel (translate) to the right without change in form.

Comments and Ratings (1)

Suraj Shankar

Suraj Shankar (view profile)

The code is meant to be pedagogical in nature and has been made in line with the 12-steps to Navier-Stokes practical module, for which I would like to credit Lorena Barba and her online course on CFD.

MATLAB Release
MATLAB 7.10 (R2010a)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Win prizes and improve your MATLAB skills

Play today