Question: Write a finite difference Matlab code that solves the heat equation (parabolic partial differential equation) partial differential^2 T(x, t/partial differential x^2 = 1/beta partial differential

Write a finite difference Matlab code that solves the heat equation (parabolic partial differential equation) partial differential^2 T(x, t/partial differential x^2 = 1/beta partial differential T(x, t/partial differential t where T(x, t) is temperature (function of space and time) and beta is the thermal diffusity of the material. Use the code to determine the time evolution (over a certain time interval 0 lessthanorequalto t lessthanorequalto tmax) of the temperature profile T in a rod of length L bounded by two thermostats (fixed boundary temperatures) TO and TL. Assume beta = 8.418 middot 10-5 m2/s, L = 1 m, tmax = 1 hr = 3600 s. Let TO = 1273 K and consider three values for TL: 293 K, 773 K, 1273 K. Always assume the default initial temperature of the rod (except at the boundaries) to be room temperature (293 K). Discretize the span of the rod with n = 30 intervals and the time interval of simulation using m = 1000 intervals. For each of the three boundary conditions mentioned above, compute and plot (using 3D plotting tools such as pcolor or surf) the evolving temperature field (T(x, t)). Comment on the results
Step by Step Solution
There are 3 Steps involved in it
To solve this problem well use the finite difference method to discretize the heat equation Heres how you can implement this in MATLAB StepbyStep Guid... View full answer
Get step-by-step solutions from verified subject matter experts
