Professional Documents
Culture Documents
m 1 of 2
clear all
%% Part 3 of Project 3
%Morgan Walli, Stephen Kietz, Amanda Holbrook, Christina Binkowski
%CME 455 Fall 2019
%December 13, 2019
%1 shell pass, 2 tube passes
% hot stream
flowrateHot = 25 % kg/s
heatCapacityHot = 2470 %J/(kg*K)
temperatureHotIn = 200+273 %K
% cold stream
flowrateCold = 79.07 % kg/s
heatCapacityCold = 2050 %J/(kg*K)
temperatureColdIn = 35+273 %K
%Area
a = 387.7 %m2
display('*******************************************************************')
display('Script calculates the output temperatures for the hot and cold streams.')
cc = flowrateCold*heatCapacityCold;
ch = flowrateHot*heatCapacityHot;
%find Cmin
if cc < ch
cmin = cc;
cmax = ch;
else
cmin = ch;
cmax = cc;
12/23/19 9:24 PM C:\Users\Morgan...\CME455Project3Part3.m 2 of 2
end
%find NTU
ntu = u*a/cmin;
%find Cr
cr = cmin/cmax;
%calculate e
e = 2*(1+cr+(1+cr^2)^(1/2)* (1+exp(-(ntu)*(1+cr^2)^(1/2)))/(1-exp(-(ntu)*(1+cr^2)^
(1/2))))^(-1);
%determine q
q = e*cmin*(temperatureHotIn - temperatureColdIn);
format short
display('*******************************************************************')
display('SCRIPT COMPLETE')
display('*******************************************************************')