You are on page 1of 2

12/31/22 11:42 PM C:\Users\Dell\Desktop\...\heatreport.

m 1 of 2

[tb,u]=meshgrid(0:1:10,10:2:50);
ts=12;
lc=10;
A=40;
k=0.02428;
v=1.4*(10^(-5));
pr=0.734;

un=u*(5/18);
Re =(un*lc)/v;
if (Re<=5*(10^5))
%laminar flow
Nu=0.664*(Re.^(0.5))*(pr.^(0.5));

else
Nu=(0.037.*(Re.^(0.8))-871).*(pr.^(1/3)); %laminar + turblent flow (mixed
flow )
h=(Nu*k)/lc;
Q=h.*A.*(ts-tb)
end
figure (1)

subplot (1,3,1)
surf(tb,u,Q)
title ('surf-plot')

xlabel ('T (c)')


ylabel('V (km/h)')
zlabel ('Q (W)')
subplot (1,3,2)
contourf(tb,Q,u,10, 'ShowText',['on'])

title('contourf-plot')
xlabel ('T (c)')
ylabel('Q (W)')
zlabel ('V (km/h)')
subplot (1,3,3)
contour(tb,Q,u,10, 'ShowText',['on'])

title('contour-plot')
xlabel ('T (c)')
ylabel('Q (W)')
zlabel ('V (km/h)')
grid on
shading interp
colormap (jet(2000))
colorbar
12/31/22 11:42 PM C:\Users\Dell\Desktop\...\heatreport.m 2 of 2

You might also like