Be the first to rate this file! 24 Downloads (last 30 days) File Size: 5.61 KB File ID: #46480
image thumbnail

1D Linear Advection Finite Difference

by

 

04 May 2014 (Updated )

Solves the 1D Linear Advection equations using a choice of five finite difference schemes.

| Watch this File

File Information
Description

The 1D Linear Advection Equations are solved using a choice of five finite difference schemes (all explicit). First Order Upwind, Lax-Friedrichs, Lax-Wendroff, Adams Average (Lax-Friedrichs) and Adams Average (Lax-Wendroff).
A heuristic time step is used.

Periodic boundary conditions are used (solutions reappears at the opposite end of the figure window.

Dependent variable (pollutant concentration) is plotted at each time step.

Additional info,
The Adams Average scheme was devised by myself (James Adams) in 2014. In this program, it has been used to modify the Lax-Friedrichs and Lax-Wendroff schemes. Numerical experiments have shows that the Adams Average improves the performance of these schemes.

MATLAB release MATLAB 7.12 (R2011a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.

Contact us