Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Help me to write a Matlab Code for the following question. I don\'t want the the

ID: 2074043 • Letter: H

Question

Help me to write a Matlab Code for the following question. I don't want the the manual solution! I need the Matlab CODE please.
http://www.chegg.com/homework-help/Heat-And-Mass-Transfer-5th-edition-chapter-5-problem-119P-solution-9780073398181
Help me to write a Matlab Code for the following question. I don't want the the manual solution! I need the Matlab CODE please.
http://www.chegg.com/homework-help/Heat-And-Mass-Transfer-5th-edition-chapter-5-problem-119P-solution-9780073398181 Quench hardening is a mechanical process in which the ferrous metals or alloys are first heated and then quickly cooled down to improve their physical properties and avoid phase transformation. Consider a 40 cm x 20 cm block of copper alloy (K 120 W/m K, = 3.91 x 10-6 m2/s) being heated uniformly until it reaches a temperature of 800°C. It is then suddenly immersed into the water bath maintained at 15°C with h = 100 W/m2 K for quenching process. However, the upper surface of the metal is not submerged in the water and is exposed to air at 15 C with a convective heat transfer coefficient of 10 W/m2-K. Using an explicit finite difference formulation, calculate the temperature distribution in the copper alloy block after 10 min have elapsed using 10 s and a uniform mesh size of x = y 10 cm. FIGURE P5-119

Explanation / Answer

CODE IN MATLAB

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

syms T(x)
L=0.6e-2;
A=160e-4;
Q=800;
k=20;
T2=85;
dT=diff(T,x);
ode=diff(T,x,2)==0;%%%%%general 1D conduction equation for plates
cond1=T(L)==T2;%%%%%%%%%boundary condition1
cond2=-k*dT(0)==Q/A;%%%%%%%%%boundary condition2
conds=[cond1 cond2];
TSol(x)=dsolve(ode,conds);
TSol=simplify(TSol(x));
x=0:0.2e-2:0.6e-2%%%%dividing into nodes with 0.2cm spacing
subs(TSol,x)

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Result:

x =

0 0.0020 0.0040 0.0060


ans =

[ 100, 95, 90, 85]