summaryrefslogtreecommitdiff
path: root/965/CH2/EX2.80/80.sci
blob: bc7bb8688397734b18ca4abaca05f27c5eaea809 (plain)
1
2
3
4
5
6
7
8
9
10
11
clc;
clear all;
disp("Maximum temperature")
L=1;//m thickness of slab
qg=500;// W/m^3
k=25;// W/(m*C)
t1=350;// degree C
// Maximum temperature at x =0
x=0;
Tmax=qg*L*L(1-(0.5*x)^2)/(2*k)+t1;// degree C
disp("degree C",Tmax,"Maximum temperature at x = 0, Tmax =")