Write a MATLAB code to solve the diffusion equation over the domain x [0, 1] subject
Question:
Write a MATLAB code to solve the diffusion equation
over the domain x ∈ [0, 1] subject to
for the (dimensionless) reaction rate k = 2. Your program should plot the solution and compare the result to the exact solution of this linear problem. Include the derivation of the exact result along with a discussion of how you made the numerical solution and the plot.
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: