print"\t example 7.1 \n"
#given
PT=1; # square pitch,in
do=0.75; # outer diameter,in
#solution
de=((4*(PT**2-(3.14*do**2/4)))/(3.14*do));
print"\t equivalent diameter is : in ",round(de,2)
De=(de/12); # ft
print"\t De is : in ",round(De,3)
#end
print"\t example 7.2 "
print"\t approximate values are mentioned in the book "
print"\t considering 50F approach "
#given
T1=350.; #F
T2=250.; #F
t2=T2-50.; # formula for approach,f
print"\t t2 is : F ",t2
t2=200.;
print"\t fluids are with equal ranges,so "
t1=t2-(T1-T2);# F
print"\t t1 is : F ",t1
t1=100.;
#solution
R=((T1-T2)/(t2-t1));
print"\t R is : ",R
S=((t2-t1)/(T1-t1));
print"\t S is : ",S
print"\t FT is 0.925 " # from fig 18
print"\t considering 0F approach "
T1=300; #F
T2=200; #F
t2=T2-0; # formula for approach,f
print"\t t2 is : F ",t2
print"\t fluids are with equal ranges,so "
t1=t2-(T1-T2); # F
print"\t t1 is : F ",t1
R=((T1-T2)/(t2-t1));
print"\t R is : ",R
S=((t2-t1)/(T1-t1));
print"\t S is : ",S
print"\t FT is 0.80 " # from fig 18
print"\t considering 20F cross "
T1=280; #F
T2=180; #F
t2=T2+20; # formula for approach,f
print"\t t2 is : F ",t2
print"\t fluids are with equal ranges,so \n"
t1=t2-(T1-T2); # F
print"\t t1 is : F ",t1
R=((T1-T2)/(t2-t1));
print"\t R is : ",R
S=((t2-t1)/(T1-t1));
print"\t S is : ",S
print"\t FT is 0.64 " # from fig 18
#end
print"\t example 7.3 \n"
print"\t approximate values are mentioned in the book \n"
#given
T1=390.; # inlet hot fluid,F
T2=200.; # outlet hot fluid,F
t1=100.; # inlet cold fluid,F
t2=170.; # outlet cold fluid,F
W=43800; # lb/hr
w=149000; # lb/hr
#solution
from math import log
print"\t 1.for heat balance "
print"\t for kerosene "
c=0.605; # Btu/(lb)*(F)
Q1=((W)*(c)*(T1-T2)); # Btu/hr
print"\t total heat required for kerosene is : Btu/hr ",Q1 # calculation mistake in problem
print"\t for crude oil "
c=0.49; # Btu/(lb)*(F)
Q=((w)*(c)*(t2-t1)); # Btu/hr
print"\t total heat required for mid continent crude is : Btu/hr ",Q # calculation mistake in problem
delt1=T2-t1; #F
delt2=T1-t2; # F
print"\t delt1 is : F ",delt1
print"\t delt2 is : F ",delt2
LMTD=((delt2-delt1)/((1)*(log(delt2/delt1))));
print"\t LMTD is : F ",LMTD
R=((T1-T2)/(t2-t1));
print"\t R is : ",R
S=((t2-t1)/(T1-t1));
print"\t S is : ",S
print"\t FT is 0.905 " # from fig 18
delt=(0.905*LMTD); # F
print"\t delt is : F ",delt
X=((delt1)/(delt2));
print"\t ratio of two local temperature difference is : ",X
Fc=0.42; # from fig.17
Kc=0.20; # crude oil controlling
Tc=((T2)+((Fc)*(T1-T2))); # caloric temperature of hot fluid,F
print"\t caloric temperature of hot fluid is : F ",Tc
tc=((t1)+((Fc)*(t2-t1))); # caloric temperature of cold fluid,F
print"\t caloric temperature of cold fluid is : F ",tc
print"\t hot fluid:shell side,kerosene "
ID=21.25; # in
C=0.25; # clearance
B=5; # baffle spacing,in
PT=1.25;
As=((ID*C*B)/(144*PT)); # flow area,ft**2
print"\t flow area is : ft**2 ",As
Gs=(W/As); # mAss velocity,lb/(hr)*(ft**2)
print"\t mAss velocity is : lb/(hr)*(ft**2) ",Gs
mu1=0.40*2.42; # at 280F,lb/(ft)*(hr), from fig.14
De=0.99/12; # from fig.28,ft
Res=((De)*(Gs)/mu1); # reynolds number
print"\t reynolds number is : ",Res
jH=93; # from fig.28
c=0.59; # Btu/(lb)*(F),at 280F,from fig.4
k=0.0765; # Btu/(hr)*(ft**2)*(F/ft), from fig.1
Pr=((c)*(mu1)/k)**(1/3); # prandelt number raised to power 1/3
print"\t Pr is : ",Pr
Ho=((jH)*(k/De)*(Pr)); # H0=(h0/phya),using eq.6.15,Btu/(hr)*(ft**2)*(F)
print"\t individual heat transfer coefficient is : Btu/(hr)*(ft**2)*(F) ",Ho
print"\t cold fluid:inner tube side,crude oil \n"
D=0.0675; # ft
Nt=158;
n=4; # number of pAsses
L=16; #ft
at1=0.515; # flow area, in**2
at=((Nt*at1)/(144*n)); # total area,ft**2,from eq.7.48
print"\t flow area is : ft**2 ",at
Gt=(w/(at)); # mAss velocity,lb/(hr)*(ft**2)
print"\t mAss velocity is : lb/(hr)*(ft**2) ",Gt
mu2=3.6*2.42; # at 129F,lb/(ft)*(hr)
Ret=((D)*(Gt)/mu2); # reynolds number
print"\t reynolds number is : ",Ret
jH=31; # from fig.24
c=0.49; # Btu/(lb)*(F),at 304F,from fig.4
k=0.077; # Btu/(hr)*(ft**2)*(F/ft), from fig.1
Pr=((c)*(mu2)/k)**(1/3); # prandelt number raised to power 1/3
print"\t Pr is : ",Pr
Hi=((jH)*(k/D)*(Pr)*(1**0.14)); #Hi=(hi/phyp),using eq.6.15a,Btu/(hr)*(ft**2)*(F)
print"\t Hi is : Btu/(hr)*(ft**2)*(F) ",Hi
ID=0.81; # ft
OD=1; #ft
Hio=((Hi)*(ID/OD)); #Hio=(hio/phyp), using eq.6.5
print"\t Correct Hi0 to the surface at the OD is : Btu/(hr)*(ft**2)*(F) ",Hio
muw=1.5*2.42; # lb/(ft)*(hr), from fig.14
phyt=(mu2/muw)**0.14;
print"\t phyt is : ",phyt # from fig.24
hio=(Hio)*(phyt); # from eq.6.37
print"\t Correct hi0 to the surface at the OD is : Btu/(hr)*(ft**2)*(F) ",hio
tw=(tc)+(((Ho)/(Hio+Ho))*(Tc-tc)); # from eq.5.31
print"\t tw is : F ",tw
muw=0.56*2.42; # lb/(ft)*(hr), from fig.14
phys=(mu1/muw)**0.14;
print"\t phys is : ",phys # from fig.24
ho=(Ho)*(phys); # from eq.6.36
print"\t Correct h0 to the surface at the OD is : Btu/(hr)*(ft**2)*(F) ",ho
Uc=((hio)*(ho)/(hio+ho)); # clean overall coefficient,Btu/(hr)*(ft**2)*(F)
print"\t clean overall coefficient is : Btu/(hr)*(ft**2)*(F) ",Uc
A2=0.2618; # actual surface supplied for each tube,ft**2,from table 10
A=(Nt*L*A2); # ft**2
print"\t total surface area is : ft**2 ",A
UD=((Q)/((A)*(delt)));
print"\t actual design overall coefficient is : Btu/(hr)*(ft**2)*(F) ",UD
Rd=((Uc-UD)/((UD)*(Uc))); # (hr)*(ft**2)*(F)/Btu
print"\t actual Rd is : (hr)*(ft**2)*(F)/Btu ",Rd
print"\t pressure drop for annulus "
f=0.00175; # friction factor for reynolds number 25300, using fig.29
s=0.73; # for reynolds number 25300,using fig.6
Ds=21.25/12; # ft
N=(12*L/B); # number of crosses,using eq.7.43
print"\t number of crosses are :",N
delPs=((f*(Gs**2)*(Ds)*(N))/(5.22*(10**10)*(De)*(s)*(phys))); # using eq.7.44,psi
print"\t delPs is : psi ",delPs
print"\t allowable delPa is 10 psi "
print"\t pressure drop for inner pipe "
f=0.000285; # friction factor for reynolds number 8220, using fig.26
s=0.83;
delPt=((f*(Gt**2)*(L)*(n))/(5.22*(10**10)*(D)*(s)*(phyt))); # using eq.7.45,psi
print"\t delPt is : psi ",delPt
X1=0.15; # X1=((V**2)/(2*g)), for Gt 1060000,using fig.27
delPr=((4*n*X1)/(s)); # using eq.7.46,psi
print"\t delPr is : psi ",delPr
delPT=delPt+delPr; # using eq.7.47,psi
print"\t delPT is : psi ",round(delPT,2)
print"\t allowable delPs is 10 psi "
#end
print"\t example 7.4 "
print"\t approximate values are mentioned in the book "
#given
T1=93.; # inlet hot fluid,F
T2=85.; # outlet hot fluid,F
t1=75.; # inlet cold fluid,F
t2=80.; # outlet cold fluid,F
W=175000.; # lb/hr
w=280000.; # lb/hr
#solution
from math import log
print"\t 1.for heat balance "
print"\t for distilled water "
c=1; # Btu/(lb)*(F)
Q=((W)*(c)*(T1-T2)); # Btu/hr
print"\t total heat required for distilled water is : Btu/hr ",Q
print"\t for raw water "
c=1; # Btu/(lb)*(F)
Q=((w)*(c)*(t2-t1)); # Btu/hr
print"\t total heat required for raw water is : Btu/hr ",Q
delt1=T2-t1; #F
delt2=T1-t2; # F
print"\t delt1 is : F ",delt1
print"\t delt2 is : F ",delt2
LMTD=((delt2-delt1)/((1)*(log(delt2/delt1))));
print"\t LMTD is : F ",LMTD
R=((T1-T2)/(t2-t1));
print"\t R is : ",R
S=((t2-t1)/(T1-t1));
print"\t S is : ",S
print"\t FT is 0.945 " # from fig 18
delt=(0.945*LMTD); # F
print"\t delt is : F ",delt
X=((delt1)/(delt2));
print"\t ratio of two local temperature difference is : ",X
Fc=0.42; # from fig.17
Kc=0.20; # crude oil controlling
Tc=((T2)+(T1))/2; # caloric temperature of hot fluid,F
print"\t caloric temperature of hot fluid is : F ",Tc
tc=((t1)+(t2))/2; # caloric temperature of cold fluid,F
print"\t caloric temperature of cold fluid is : F ",tc
print"\t hot fluid:shell side,distilled water "
ID=15.25; # in
C=0.1875; # clearance
B=12; # baffle spacing,in
PT=0.9375;
As=((ID*C*B)/(144*PT)); # flow area,ft**2,using eq.7.1
print"\t flow area is : ft**2 ",As
Gs=(W/As); # mAss velocity,lb/(hr)*(ft**2),using eq.7.2
print"\t mAss velocity is : lb/(hr)*(ft**2) ",Gs
mu1=0.81*2.42; # at 89F,lb/(ft)*(hr), from fig.14
De=0.55/12; # from fig.28,ft
Res=((De)*(Gs)/mu1); # reynolds number
print"\t reynolds number is : ",Res
jH=73; # from fig.28
c=1; # Btu/(lb)*(F),at 89F,from fig.table 4
k=0.36; # Btu/(hr)*(ft**2)*(F/ft), from table 4
Pr=((c)*(mu1)/k)**(1/3); # prandelt number raised to power 1/3
print"\t Pr is : ",Pr
ho=((jH)*(k/De)*(Pr)); # using eq.6.15,Btu/(hr)*(ft**2)*(F)
print"\t individual heat transfer coefficient is : Btu/(hr)*(ft**2)*(F) ",ho
print"\t cold fluid:inner tube side,raw water "
Nt=160;
n=2; # number of pAsses
L=16; #ft
at1=0.334; # flow area, in**2,from table 10
at=((Nt*at1)/(144*n)); # total area,ft**2,from eq.7.48
print"\t flow area is : ft**2 ",at
Gt=(w/(at)); # mAss velocity,lb/(hr)*(ft**2)
print"\t mAss velocity is : lb/(hr)*(ft**2) ",Gt
V=(Gt/(3600*62.5));
print"\t V is fps ",V
mu2=0.92*2.42; # at 77.5F,lb/(ft)*(hr)
D=0.65/12; #ft
Ret=((D)*(Gt)/mu2); # reynolds number
print"\t reynolds number is : ",Ret
hi=1350*0.99; #using fig.25,Btu/(hr)*(ft**2)*(F)
ID=0.65; # ft
OD=0.75; #ft
hio=((hi)*(ID/OD)); # using eq.6.5
print"\t Correct hi0 to the surface at the OD is : Btu/(hr)*(ft**2)*(F) ",hio
Uc=((hio)*(ho)/(hio+ho)); # clean overall coefficient,Btu/(hr)*(ft**2)*(F)
print"\t clean overall coefficient is : Btu/(hr)*(ft**2)*(F) ",Uc
print"\t when both film coefficients are high the thermal resistance of the tube metal is not necessarily insignificant As Assumed in the derivation of Eq. (6.38). For a steel 1.8 BWG tube Rm= 0.00017 and for copper Rm= 0.000017 "
A2=0.1963; # actual surface supplied for each tube,ft**2,from table 10
A=(Nt*L*A2); # ft**2
print"\t total surface area is : ft**2 ",A
UD=((Q)/((A)*(delt)));
print"\t actual design overall coefficient is : Btu/(hr)*(ft**2)*(F) ",UD
Rd=((Uc-UD)/((UD)*(Uc))); # (hr)*(ft**2)*(F)/Btu
print"\t actual Rd is : (hr)*(ft**2)*(F)/Btu ",Rd
print"\t pressure drop for annulus "
f=0.0019; # friction factor for reynolds number 16200, using fig.29
s=1; # for reynolds number 25300,using fig.6
Ds=15.25/12; # ft
phys=1;
N=(12*L/B); # number of crosses,using eq.7.43
print"\t number of crosses are : ",N
delPs=((f*(Gs**2)*(Ds)*(N))/(5.22*(10**10)*(De)*(s)*(phys))); # using eq.7.44,psi
print"\t delPs is : psi ",delPs
print"\t allowable delPs is 10 psi "
print"\t pressure drop for inner pipe "
f=0.00019; # friction factor for reynolds number 36400, using fig.26
s=1;
phyt=1;
D=0.054; # ft
delPt=((f*(Gt**2)*(L)*(n))/(5.22*(10**10)*(D)*(s)*(phyt))); # using eq.7.45,psi
print"\t delPt is : psi ",round(delPt,1)
X1=0.33; # X1=((V**2)/(2*g)), for Gt 1060000,using fig.27
delPr=((4*n*X1)/(s)); # using eq.7.46,psi
print"\t delPr is : psi ",round(delPr,1)
delPT=delPt+delPr; # using eq.7.47,psi
print"\t delPT is : psi ",round(delPT,1)
print"\t allowable delPT is 10 psi "
#end
print"\t example 7.5 "
print"\t approximate values are mentioned in the book "
#given
T1=175.; # inlet hot fluid,F
T2=150.; # outlet hot fluid,F
t1=85.; # inlet cold fluid,F
#solution
delt1=T2-t1; #F
print"\t delt1 is : F ",delt1
U=15; # assumption,Btu/(hr)*(ft^2)*(F)
theta=8000; # operating hours,hr
CW=(0.01/8300); # water cost,$/lb
print"\t For annual charges assume 20 per cent repair and maintenanc.e and 10 per cent depreciation \n"
CF=(0.3*4); # annual fixed charges/ft^2
c=1; # Btu/(lb)*(F)
X=((U)*(theta)*(CW)/(CF*c));
print"\t X is : ",X
Y=((T1-T2)/delt1);
print"\t Y is : ",Y
A=0.96; # A=(delt2/delt1), from fig 7.24
delt2=0.96*delt1;
print"\t delt2 is : F ",delt2
t2=T1-delt2; # F
print"\t t2 is : F ",t2
#end
print"\t example 7.6 \n"
print"\t approximate values are mentioned in the book \n"
#given
T1=150.; # inlet hot fluid,F
T2=90.; # outlet hot fluid,F
t1=68.; # inlet cold fluid,F
t2=90.; # outlet cold fluid,F
W=20160.; # lb/hr
w=41600.; # lb/hr
#solution
from math import log
print"\t 1.for heat balance \n"
print"\t for solution \n"
c=(0.3*0.19)+(0.7*1); # Btu/(lb)*(F), bcoz of 30 percent of solution
Q1=((W)*(c)*(T1-T2)); # Btu/hr
print"\t total heat required for solution is : Btu/hr ",Q1
print"\t for water \n"
c=1; # Btu/(lb)*(F)
Q=((w)*(c)*(t2-t1)); # Btu/hr
print"\t total heat required for water is : Btu/hr ",Q
delt1=T2-t1; #F
delt2=T1-t2; # F
print"\t delt1 is : F ",delt1
print"\t delt2 is : F ",delt2
LMTD=((delt2-delt1)/((1)*(log(delt2/delt1))));
print"\t LMTD is : F ",LMTD
R=((T1-T2)/(t2-t1));
print"\t R is : ",R
S=((t2-t1)/(T1-t1));
print"\t S is : ",S
print"\t FT is 0.81 " # from fig 18
delt=(0.81*LMTD); # F
print"\t delt is : F ",delt
Tc=((T2)+(T1))/2; # caloric temperature of hot fluid,F
print"\t caloric temperature of hot fluid is : F",Tc
tc=((t1)+(t2))/2; # caloric temperature of cold fluid,F
print"\t caloric temperature of cold fluid is : F ",tc
print"\t hot fluid:shell side,phosphate solution "
ID=10.02; # in
C=0.25; # clearance
B=2; # baffle spacing,in
PT=1;
As=((ID*C*B)/(144*PT)); # flow area,ft**2,using eq.7.1
print"\t flow area is : ft**2 ",As
Gs=(W/As); # mAss velocity,lb/(hr)*(ft**2),using eq.7.2
print"\t mAss velocity is : lb/(hr)*(ft**2) ",Gs
mu1=1.20*2.42; # at 120F,lb/(ft)*(hr), from fig.14
De=0.95/12; # from fig.28,ft
Res=((De)*(Gs)/mu1); # reynolds number
print"\t reynolds number is : ",Res
jH=71; # from fig.28
c=1; # Btu/(lb)*(F),at 120F,from fig.table 4
k=0.33; # Btu/(hr)*(ft**2)*(F/ft), from table 4
Pr=((0.757)*(mu1)/k)**(1/3); # prandelt number raised to power 1/3
print"\t Pr is : ",Pr
ho=((jH)*(k/De)*(Pr)); # using eq.6.15,Btu/(hr)*(ft**2)*(F)
print"\t individual heat transfer coefficient is : Btu/(hr)*(ft**2)*(F) ",ho
print"\t cold fluid:inner tube side,raw water "
Nt=52;
n=2; # number of pAsses
L=16; #ft
at1=0.302; # flow area, in**2,from table 10
at=((Nt*at1)/(144*n)); # total area,ft**2,from eq.7.48
print"\t flow area is : ft**2 ",at
Gt=(w/(at)); # mAss velocity,lb/(hr)*(ft**2)
print"\t mAss velocity is : lb/(hr)*(ft**2) ",Gt
V=(Gt/(3600*62.5));
print"\t V is fps ",V
mu2=0.91*2.42; # at 79F,lb/(ft)*(hr),from table 14
D=(0.62/12); # from table 10
Ret=((D)*(Gt)/mu2); # reynolds number
print"\t reynolds number is : ",Ret
hi=800*1; #using fig.25,Btu/(hr)*(ft**2)*(F)
ID=0.62; # ft
OD=0.75; #ft
hio=((hi)*(ID/OD)); # using eq.6.5
print"\t Correct hi0 to the surface at the OD is : Btu/(hr)*(ft**2)*(F) ",hio
Uc=((hio)*(ho)/(hio+ho)); # clean overall coefficient,Btu/(hr)*(ft**2)*(F)
print"\t clean overall coefficient is : Btu/(hr)*(ft**2)*(F) ",Uc
A2=0.1963; # actual surface supplied for each tube,ft**2,from table 10
A=(Nt*L*A2); # ft**2
print"\t total surface area is : ft**2 ",A
UD=((Q)/((A)*(delt)));
print"\t actual design overall coefficient is : Btu/(hr)*(ft**2)*(F) ",UD
Rd=((Uc-UD)/((UD)*(Uc))); # (hr)*(ft**2)*(F)/Btu
print"\t actual Rd is : (hr)*(ft**2)*(F)/Btu ",Rd
print"\t pressure drop for annulus "
f=0.0019; # friction factor for reynolds number 15750, using fig.29
s=1.3; # for reynolds number 25300,using fig.6
Ds=10.02/12; # ft
phys=1;
N=(12*L/B); # number of crosses,using eq.7.43
print"\t number of crosses are : ",N
delPs=((f*(Gs**2)*(Ds)*(N))/(5.22*(10**10)*(De)*(s)*(phys))); # using eq.7.44,psi
print"\t delPs is : psi ",delPs
print"\t allowable delPs is 10 psi "
print"\t pressure drop for inner pipe "
f=0.00023; # friction factor for reynolds number 17900, using fig.26
s=1;
phyt=1;
D=0.0517; # ft
delPt=((f*(Gt**2)*(L)*(n))/(5.22*(10**10)*(D)*(s)*(phyt))); # using eq.7.45,psi
print"\t delPt is : psi ",delPt
X1=0.08; # X1=((V**2)/(2*g)), for Gt 1060000,using fig.27
delPr=((4*n*X1)/(s)); # using eq.7.46,psi
print"\t delPr is : psi ",round(delPr,1)
delPT=delPt+delPr; # using eq.7.47,psi
print"\t delPT is : psi ",round(delPT,1)
print"\t allowable delPT is 10 psi \n"
#end
print"\t example 7.7 \n"
print"\t approximate values are mentioned in the book \n"
#given
U=50; # Btu/(hr)*(ft**2)*(F)
TP=328; # F
TE=228; # F
#solution
import numpy
CP=(0.30/(888.8*1000));
CE=(0.05/(960*1000));
CF=1.20;
theta=8000; # annual hours
X=((CF*(TP-TE))/((CP-CE)*U*theta)); # from eq 7.53
print"\t X is : ",X
a=(1); # coefficient of t**2
b=(-556); # coefficient of t
c=(74784-X); # constant
print"\t coefficient of t**2 is : ",a
print"\t coefficient of t is : ",b
print"\t constant term is : ",c
P=numpy.array([c, b, a])
t=numpy.roots(P)
print"\t t is :",t
print"\t t cannot be greater than 328F t is 218F "
#end
print"\t example 7.8 \n"
print"\t approximate values are mentioned in the book \n"
#given
T1=228.; # inlet hot fluid,F
T2=228.; # outlet hot fluid,F
t1=100.; # inlet cold fluid,F
t2=122.; # outlet cold fluid,F
W=200000.; # lb/hr
w=3950.; # lb/hr
#solution
import sys
print sys.getdefaultencoding()
from math import log
print"\t 1.for heat balance \n"
print"\t for solution \n"
c=(0.2*0.30)+(0.8*1); # bcoz of 20 percent solution,Btu/(lb)*(F)
Q1=((W)*(c)*(t2-t1)); # Btu/hr
print"\t total heat required for solution is : Btu/hr ",Q1
print"\t for steam \n"
l=960.1; # latent heat of condensation,Btu/(lb)
Q=((w)*(l)); # Btu/hr
print"\t total heat required for steam is : Btu/hr ",Q
delt1=T2-t1; #F
delt2=T1-t2; # F
print"\t delt1 is : F ",delt1
print"\t delt2 is : F ",delt2
LMTD=((delt2-delt1)/((1)*(log(delt2/delt1))));
print"\t LMTD is : F ",LMTD
R=((T1-T2)/(t2-t1));
print"\t R is : ",R
delt=(LMTD); # when R=0,F
print"\t delt is : F ",delt
ta=111; #F
Ta=228; #f
print"\t hot fluid:tube side,steam "
Nt=76;
n=2; # number of pAsses
L=16; #ft
at1=0.302; # flow area, in**2
at=((Nt*at1)/(144*n)); # total area,ft**2,from eq.7.48
print"\t flow area is : ft**2 ",at
Gt=(w/(at)); # mAss velocity,lb/(hr)*(ft**2)b
print"\t mAss velocity is : lb/(hr)*(ft**2) ",Gt
mu2=0.0128*2.42; # at 228F,lb/(ft)*(hr)
D=(0.62/12); # from table 10,ft
Ret=((D)*(Gt)/mu2); # reynolds number
print"\t reynolds number is : ",Ret
hio=1500; # for condensation of steam
print"\t Correct hi0 to the surface at the OD is : Btu/(hr)*(ft**2)*(F) ",hio
print"\t cold fluid:shell side,sugar solution \n"
ID=12; # in
d=0.75/12; # diameter of tube,ft
Nt=76; # number of tubes
As=((3.14*(12**2)/4)-(76*3.14*(0.75**2)/4))/144; # flow area,ft**2
print"\t flow area is : ft**2 ",As
Gs=(W/As); # mAss velocity,lb/(hr)*(ft**2)
print"\t mAss velocity is : lb/(hr)*(ft**2) ",Gs
mu1=1.30*2.42; # at 111F,lb/(ft)*(hr), from fig.14
De=((4*As)/(Nt*3.14*d)); # from eq.6.3,ft
print"\t De is : ft ",De
Res=((De)*(Gs)/mu1); # reynolds number
print"\t reynolds number is : ",Res
jH=61.5; # from fig.24, tube side data
c=0.86; # Btu/(lb)*(F),at 111F,from fig.4
k=0.333; # Btu/(hr)*(ft**2)*(F/ft)
Pr=((c)*(mu1)/k)**(1/3); # prandelt number raised to power 1/3
print"\t Pr is :",Pr
Ho=((jH)*(k/De)*(Pr)); # H0=(h0/phya),using eq.6.15,Btu/(hr)*(ft**2)*(F)
print"\t individual heat transfer coefficient is : Btu/(hr)*(ft**2)*(F) ",Ho
muw=0.51*2.42; # at 210F,lb/(ft)*(hr), from fig.14
phys=(mu1/muw)**0.14;
print"\t phys is : ",phys # from fig.24
ho=(Ho)*(phys); # from eq.6.36
print"\t Correct h0 to the surface at the OD is : Btu/(hr)*(ft**2)*(F) ",ho
tw=(ta)+(((hio)/(hio+Ho))*(Ta-ta)); # from eq.5.31
print"\t tw is : F ",tw
Uc=((hio)*(ho)/(hio+ho)); # clean overall coefficient,Btu/(hr)*(ft**2)*(F)
print"\t clean overall coefficient is : Btu/(hr)*(ft**2)*(F) ",Uc
A2=0.1963; # actual surface supplied for each tube,ft**2,from table 10
A=(Nt*L*A2); # ft**2
print"\t total surface area is : ft**2 ",A
UD=((Q)/((A)*(LMTD)));
print"\t actual design overall coefficient is : Btu/(hr)*(ft**2)*(F) ",UD
Rd=((Uc-UD)/((UD)*(Uc))); # (hr)*(ft**2)*(F)/Btu
print"\t actual Rd is : (hr)*(ft**2)*(F)/Btu ",Rd
print"\t pressure drop for inner pipe \n"
f=0.000155; # friction factor for reynolds number 82500, using fig.26
s=0.0008;
phyt=1;
D=0.0517;
delPt=((f*(Gt**2)*(L)*(2))/(5.22*(10**10)*(D)*(s)*(phyt)))/2; # using eq.7.45,psi
print"\t delPt is : psi ",round(delPt,1)
print"\t pressure drop for annulus \n"
De1=((4*As)/((Nt*3.14*d)+(3.14*1))); # from eq.6.4,ft
print"\t De1 is : ft",round(De1,3)
Res1=(De1*Gs/mu1); # from eq 7.3
print"\t Res1 is : ",round(Res1)
f=0.00025; # friction factor, using fig.26
s=1.08; # for reynolds number 25300,using fig.6
delPs=((f*(Gs**2)*(L)*(1))/(5.22*(10**10)*(De1)*(s)*(phys))); # using eq.7.44,psi
print"\t delPs is : psi ",round(delPs,2)
#end
print"\t example 7.9 \n"
print"\t approximate values are mentioned in the book \n"
#given
T1=390; # F
t1=100; # F
U=69.3; # Btu/(hr)*(ft^2)*(F)
A=662; # ft^2
W=43800; # lb/hr
w=149000; # lb/hr
C=0.60; # Btu/(lb)*(F)
c=0.49; # Btu/(lb)*(F)
#solution
X=((U*A)/(w*c));
print"\t X is : ",X
R=((w*c)/(W*C));
print"\t R is : ",R
S=0.265; # from fig 7.25, by comparing X an R
t2=(t1)+((0.265)*(T1-t1)); # S=((t2-t1)/(T1-t1))
print"\t t2 is : F ",t2
T2=((T1)-((R)*(t2-t1))); # R=((T1-T2)/(t2-t1))
print"\t T2 is : F ",round(T2)
# end