Write a MATLAB program that uses the method of lines, RK4, and finite differences to solve the
Question:
Write a MATLAB program that uses the method of lines, RK4, and finite differences to solve the diffusion equation
subject to an initial condition c(x, 0) = 1 and boundary conditions c(0, t) = 1 and c(1, t) = 0. Your program should automatically plot the solution at the times t = 0.0005, 0.005, 0.02, 0.05, 0.1, and 0.5.
Step by Step Answer:
Related Book For
Numerical Methods With Chemical Engineering Applications
ISBN: 9781107135116
1st Edition
Authors: Kevin D. Dorfman, Prodromos Daoutidis
Question Posted: