You are on page 1of 3

1.

) MATLAB PROGRAM TO STUDY THE EFFECT OF VARIATION OF LENGTH OF FIN ON OVERALL EFFECTIVENESS & TOTAL HEAT TRANSFER clc; clear all; close all; i=input('enter the number of different set of readings you want'); for w=1:i disp('....'); disp('READINGS FOR SET'); disp(w); Ts(w)=input('enter the plate temperature in degree celcius '); Tinf(w)=input('enter the ambient temperature in degree celsius '); k(w)=input('enter the conductivity of the fin material in W/mK '); h(w)=input('enter the heat transfer coefficient on surface in W/sq.mK d(w)=input('enter the diameter of the pin fin in mm '); f(w)=input('enter the spacing between the fins in cm '); Ac(w)=0.25*d(w)*d(w)*pi; A(w)=Ac(w)*0.001*0.001; p(w)=pi*d(w)*0.001; j(w)=(2*2)/(f(w)*f(w)*0.01*0.01); n(w)=round(j(w)); end disp('....'); disp('....'); q1=input('ENTER THE LENGTH UPTO WHICH PLOT IS REQUIRED IN mm q=round(q1); for w=1:1:i for L=1:1:q Lcor(L,w)=(L*0.001)+(0.25*d(w)*0.001); g(w)=(h(w)*p(w)*A(w)*k(w))^(0.5); m(w)=((h(w)*p(w))/(k(w)*A(w)))^(0.5); y(L,w)=tanh(m(w)*Lcor(L,w)); Qfin(L,w)=n(w)*g(w)*y(L,w)*(Ts(w)-Tinf(w)); Qunfin(w)=(2*2-(n(w)*A(w)))*h(w)*(Ts(w)-Tinf(w)); Qtotal(L,w)=Qfin(L,w)+Qunfin(w); Qnofin(w)=h(w)*2*2*(Ts(w)-Tinf(w)); effct(L,w)=Qtotal(L,w)/Qnofin(w); end end subplot(1,1,1); for w=1:1:i a=1:1:q; plot(a,effct(a,w)); hold on title('OVERALL EFFECTIVENESS vs LENGTH OF FIN '); xlabel('length of fin(mm)'); ylabel('effectiveness'); end

');

');

figure; for w=1:1:i subplot(2,1,w); a=1:1:q; plot(a,Qtotal(a,w),a,Qnofin(w)); title('HEAT TRANSFER VS LENGTH OF FIN'); xlabel('length of fin(mm)'); ylabel('heat transfer(W) '); end SAMPLE OUTPUT enter the number of different set of readings you want2 .... READINGS FOR SET 1 enter the plate temperature in degree celcius 100 enter the ambient temperature in degree celsius 25 enter the conductivity of the fin material in W/mK 300 enter the heat transfer coefficient on surface in W/sq.mK enter the diameter of the pin fin in mm 2.5 enter the spacing between the fins in cm 0.7 .... READINGS FOR SET 2 enter enter enter enter enter enter .... .... ENTER >> the the the the the the plate temperature in degree celcius 200 ambient temperature in degree celsius 40 conductivity of the fin material in W/mK 237 heat transfer coefficient on surface in W/sq.mK diameter of the pin fin in mm 3 spacing between the fins in cm 0.8

35

45

THE LENGTH UPTO WHICH PLOT IS REQUIRED IN mm

500

You might also like