%%Matlab code for plotting and finding h
clear all
close all
%all given data
t=0:10:300;
T_surf=[250.3 238.1 230.1 221.0 219 210.2 197.9 196 193.1 185.9
176.7 ...
172.4 170.3 163 153.5 151.3 149.8 143.4 139 137
132.3 131.4 131.1 ...
122.9 126.6 114.7 112.4 115.7 110.8 104.1
104.4];
th=T_surf-50;
figure(1)
plot(t,th)
xlabel('t')
ylabel('theta(t)')
title('t vs. theta(t) plot')
box on
figure(2)
plot(t,log(th))
xlabel('t')
ylabel('log(theta(t))')
title('t vs. log(theta(t)) plot')
box on
%plotting best fit line of linear data
p=polyfit(t,log(th),1);
pp=polyval(p,t);
hold on
plot(t,pp)
legend('Actual data','Linear fit')
fprintf('Here slope of the line is %f and intercept is %f\n',p(1),p(2))
%%%%%%%%%%%%%%%%%% End of Code %%%%%%%%%%%%%%%%
A spherical aluminum ball at a uniform temperature of 250°C is dropped into an oil |t...
1) A spherical aluminum ball at a uniform temperature of 250°C is dropped into an oil t(s) Tscat t(C] bath at 50°C. The ball's surface temperature is measured using a thermocouple. The 250.3 table below (also provided as a spreadsheet in a separate file) shows the recorded 10 238.1 temperature versus time every ten seconds for 300 seconds. If the Bi #<<1, the lumped capacitance solution 20 230.1 30 221.0 6h e(t) = 0,exp( 219.0 40 PCD is valid. Here,...
A long wire with circular cross section and diameter D = 1 mm is submerged in an oil bath with temperature To 20。C. The wire is initially at temperature T = 20。C, the same temperature as the oil. A current is passed through the wire, resulting in a volumetric heat generation of q - 1.5 x 108 W/m3. The convection coefficient is h - 500 W/m2 - K, and the properties of the wire are ρ-8000 kg/m3, Cp-500 J/kg-K, and...