Question: Please do this in Matlab ONE-DIMENSIONAL HEAT EQUATION Consider a slab with heat applied to the left and/or right side. As heat is applied, the

Please do this in Matlab
ONE-DIMENSIONAL HEAT EQUATION Consider a slab with heat applied to the left and/or right side. As heat is applied, the temperature, T, at any one location in the slab will increase. Thus, T is a function of time. Additionally, there will be a temperature gradient along the slab. Thus, T is a function of space. "L" "R" The PDE defining the temperature T(x,t) across this slab at any time and position L SXS R is given by at C22T ot np rz= 0 where n = 2 K is the specific heat, p = 2.7 x 109/m3 is the material density, and C = 205 W/mK is the thermal conductivity. Assume a length of the slab is 5 m. Assume time ranges from 0 to 100 seconds. 1) Assume boundary conditions of T (t) = 50+t and TR(t) = 95+t. Solve and surf plot the temperature throughout the slab for initial condition of T.(x) = 0 in position 1 of a 1x2 figure. (2 pts) 2) Re-run 1) but plot in position 2 of the 1x2 figure assuming T,(x) = 20.IX - 2.51 - 65. (1 pt) ONE-DIMENSIONAL HEAT EQUATION Consider a slab with heat applied to the left and/or right side. As heat is applied, the temperature, T, at any one location in the slab will increase. Thus, T is a function of time. Additionally, there will be a temperature gradient along the slab. Thus, T is a function of space. "L" "R" The PDE defining the temperature T(x,t) across this slab at any time and position L SXS R is given by at C22T ot np rz= 0 where n = 2 K is the specific heat, p = 2.7 x 109/m3 is the material density, and C = 205 W/mK is the thermal conductivity. Assume a length of the slab is 5 m. Assume time ranges from 0 to 100 seconds. 1) Assume boundary conditions of T (t) = 50+t and TR(t) = 95+t. Solve and surf plot the temperature throughout the slab for initial condition of T.(x) = 0 in position 1 of a 1x2 figure. (2 pts) 2) Re-run 1) but plot in position 2 of the 1x2 figure assuming T,(x) = 20.IX - 2.51 - 65. (1 pt)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
