summaryrefslogtreecommitdiff
path: root/2519/CH11
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2519/CH11
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2519/CH11')
-rwxr-xr-x2519/CH11/EX11.1/Ex11_1.sce15
-rwxr-xr-x2519/CH11/EX11.10/Ex11_10.sce23
-rwxr-xr-x2519/CH11/EX11.11/Ex11_11.sce28
-rwxr-xr-x2519/CH11/EX11.12/Ex11_12.sce20
-rwxr-xr-x2519/CH11/EX11.13/Ex11_13.sce13
-rwxr-xr-x2519/CH11/EX11.14/Ex11_14.sce14
-rwxr-xr-x2519/CH11/EX11.2/Ex11_2.sce15
-rwxr-xr-x2519/CH11/EX11.3/Ex11_3.sce13
-rwxr-xr-x2519/CH11/EX11.4/Ex11_4.sce25
-rwxr-xr-x2519/CH11/EX11.5/Ex11_5.sce73
-rwxr-xr-x2519/CH11/EX11.6/Ex11_6.sce18
-rwxr-xr-x2519/CH11/EX11.7/Ex11_7.sce23
-rwxr-xr-x2519/CH11/EX11.8/Ex11_8.sce15
-rwxr-xr-x2519/CH11/EX11.9/Ex11_9.sce21
14 files changed, 316 insertions, 0 deletions
diff --git a/2519/CH11/EX11.1/Ex11_1.sce b/2519/CH11/EX11.1/Ex11_1.sce
new file mode 100755
index 000000000..49f282c62
--- /dev/null
+++ b/2519/CH11/EX11.1/Ex11_1.sce
@@ -0,0 +1,15 @@
+clc
+clear
+//Initialization of variables
+n=1.3
+T1=460+60 //R
+P1=14.7 //psia
+P2=125 //psia
+R=1545
+M=29
+//calculations
+T2=T1*(P2/P1)^((n-1)/n)
+wrev=R/M *(T2-T1)/(1-n)
+//results
+printf("Work done = %d ft-lbf/lbm",wrev)
+disp("The answer is a bit different due to rounding off error in textbook")
diff --git a/2519/CH11/EX11.10/Ex11_10.sce b/2519/CH11/EX11.10/Ex11_10.sce
new file mode 100755
index 000000000..93a3d4895
--- /dev/null
+++ b/2519/CH11/EX11.10/Ex11_10.sce
@@ -0,0 +1,23 @@
+clc
+clear
+//Initialization of variables
+T2=546.6 //R
+T1=520 //R
+T3=560 //R
+v2=1389.2
+v1=186.2
+R0=1.986
+c1=5.02
+c2=4.97
+n1=1
+n2=2
+v3=1203
+//calculations
+ds1=n1*c1*log(T2/T1) + n1*R0*log(v2/v1)
+ds2=n2*c2*log(T2/T3)+n2*R0*log(v2/v3)
+ds=ds1+ds2
+//results
+printf("Change in entropy for gas 1 = %.3f Btu/R",ds1)
+printf("\n Change in entropy for gas 1 = %.3f Btu/R",ds2)
+printf("\n Net change in entropy = %.3f Btu/R",ds)
+disp("The answer is a bit different due to rounding off error in the textbook")
diff --git a/2519/CH11/EX11.11/Ex11_11.sce b/2519/CH11/EX11.11/Ex11_11.sce
new file mode 100755
index 000000000..2c2a19d95
--- /dev/null
+++ b/2519/CH11/EX11.11/Ex11_11.sce
@@ -0,0 +1,28 @@
+clc
+clear
+//Initialization of variables
+m1=1 //lbm
+m2=0.94 //lbm
+M1=29
+M2=18
+p1=50 //psia
+p2=100 //psia
+t1=250 +460 //R
+R0=1.986
+cpa=6.96
+cpb=8.01
+//calculations
+xa = (m1/M1)/((m1/M1)+ m2/M2)
+xb=1-xa
+t2=t1*(p2/p1)^(R0/(xa*cpa+xb*cpb))
+d=R0/(xa*cpa+xb*cpb)
+k=1/(1-d)
+dsa=cpa*log(t2/t1) -R0*log(p2/p1)
+dSa=(m1/M1)*dsa
+dSw=-dSa
+dsw=dSw*M2/m2
+//results
+printf("Final remperature = %d R",t2)
+printf("\n Change in entropy of air = %.3f btu/mole R and %.5f Btu/R",dsa,dSa)
+printf("\n Change in entropy of water = %.4f btu/mole R and %.5f Btu/R",dsw,dSw)
+disp("The answers are a bit different due to rounding off error in textbook")
diff --git a/2519/CH11/EX11.12/Ex11_12.sce b/2519/CH11/EX11.12/Ex11_12.sce
new file mode 100755
index 000000000..33fee6842
--- /dev/null
+++ b/2519/CH11/EX11.12/Ex11_12.sce
@@ -0,0 +1,20 @@
+clc
+clear
+//Initialization of variables
+T=250 + 460 //R
+p=29.825 //psia
+pt=50 //psia
+vg=13.821 //ft^3/lbm
+M=29
+R=10.73
+//calculations
+pa=pt-p
+V=1/M *R*T/pa
+ma=V/vg
+xa=p/pt
+mb=xa/M *18/(1-xa)
+//results
+printf("In case 1, volume occupied = %.2f ft^3",V)
+printf("\n In case 1, mass of steam = %.2f lbm steam",ma)
+printf("\n In case 2, mass of steam = %.3f lbm steam",mb)
+
diff --git a/2519/CH11/EX11.13/Ex11_13.sce b/2519/CH11/EX11.13/Ex11_13.sce
new file mode 100755
index 000000000..9eabf7508
--- /dev/null
+++ b/2519/CH11/EX11.13/Ex11_13.sce
@@ -0,0 +1,13 @@
+clc
+clear
+//Initialization of variables
+ps=0.64 //psia
+p=14.7 //psia
+M=29
+M2=46
+//calculations
+xa=ps/p
+mb=xa*9/M *M2/(1-xa)
+//results
+printf("percentage = %.1f percent",mb*100)
+
diff --git a/2519/CH11/EX11.14/Ex11_14.sce b/2519/CH11/EX11.14/Ex11_14.sce
new file mode 100755
index 000000000..667ece799
--- /dev/null
+++ b/2519/CH11/EX11.14/Ex11_14.sce
@@ -0,0 +1,14 @@
+clc
+clear
+//Initialization of variables
+ps=0.5069 //psia
+p=20 //psia
+m1=0.01
+m2=1
+M1=18
+M2=29
+//calculations
+xw= (m1/M1)/(m1/M1+m2/M2)
+pw=xw*p
+//results
+printf("partial pressure of water vapor = %.3f psia",pw)
diff --git a/2519/CH11/EX11.2/Ex11_2.sce b/2519/CH11/EX11.2/Ex11_2.sce
new file mode 100755
index 000000000..2f3a50c71
--- /dev/null
+++ b/2519/CH11/EX11.2/Ex11_2.sce
@@ -0,0 +1,15 @@
+clc
+clear
+//Initialization of variables
+P2=10 //psia
+P1=100 //psia
+T1=900 //R
+w=50 //Btu/lbm
+k=1.39
+cp=0.2418
+//calculations
+T2=T1*(P2/P1)^((k-1)/k)
+T2=477
+KE=-w-cp*(T2-T1)
+//results
+printf("Change in kinetic energy = %.1f Btu/lbm",KE)
diff --git a/2519/CH11/EX11.3/Ex11_3.sce b/2519/CH11/EX11.3/Ex11_3.sce
new file mode 100755
index 000000000..f5cb5289f
--- /dev/null
+++ b/2519/CH11/EX11.3/Ex11_3.sce
@@ -0,0 +1,13 @@
+clc
+clear
+//Initialization of variables
+T1=900 //R
+P1=100 //psia
+P2=10 //psia
+//calculations
+disp("From table B-9")
+pr1=8.411
+pr2=pr1*P2/P1
+T2=468 //R
+//results
+printf("Final temperature = %d R ",T2)
diff --git a/2519/CH11/EX11.4/Ex11_4.sce b/2519/CH11/EX11.4/Ex11_4.sce
new file mode 100755
index 000000000..d73c78a3f
--- /dev/null
+++ b/2519/CH11/EX11.4/Ex11_4.sce
@@ -0,0 +1,25 @@
+clc
+clear
+//Initialization of variables
+cr=6
+p1=14.7 //psia
+t1=60.3 //F
+M=29
+R=1.986
+//calculations
+disp("from table b-9")
+vr1=158.58
+u1=88.62 //Btu/lbm
+pr1=1.2147
+vr2=vr1/cr
+T2=1050 //R
+u2=181.47 //Btu/lbm
+pr2=14.686
+p2=p1*(pr2/pr1)
+dw=u1-u2
+h2=u2+T2*R/M
+//results
+printf("final temperature = %d R",T2)
+printf("\n final pressure = %.1f psia",p2)
+printf("\n work done = %.2f Btu/lbm",dw)
+printf("\n final enthalpy = %.1f Btu/lbm",h2)
diff --git a/2519/CH11/EX11.5/Ex11_5.sce b/2519/CH11/EX11.5/Ex11_5.sce
new file mode 100755
index 000000000..094871ab4
--- /dev/null
+++ b/2519/CH11/EX11.5/Ex11_5.sce
@@ -0,0 +1,73 @@
+clc
+clear
+//Initialization of variables
+m1=10 //lbm
+m2=15 //lnm
+p=50 //psia
+t=60+460 //R
+M1=32
+M2=28.02
+R0=10.73
+//calculations
+n1=m1/M1
+n2=m2/M2
+x1=n1/(n1+n2)
+x2=n2/(n1+n2)
+M=x1*M1+x2*M2
+R=R0/M
+V=(n1+n2)*R0*t/p
+rho=p/(R0*t)
+rho2=M*rho
+p1=x1*p
+p2=x2*p
+v1=x1*V
+v2=x2*V
+//results
+disp("part a")
+printf("Mole fractions of oxygen and nitrogen are %.3f and %.3f respectively",x1,x2)
+disp("part b")
+printf("Average molecular weight = %.1f ",M)
+disp("part c")
+printf("specific gas constant = %.4f psia ft^3/lbm R",R)
+disp("part d")
+printf("volume of mixture = %.1f ft^3",V)
+printf("density of mixture is %.5f mole/ft^3 and %.2f lbm/ft^3",rho,rho2)
+disp("part e")
+printf("partial pressures of oxygen and nitrogen are %.2f psia and %.2f psia respectively" ,p1,p2)
+clc
+clear
+//Initialization of variables
+m1=10 //lbm
+m2=15 //lnm
+p=50 //psia
+t=60+460 //R
+M1=32
+M2=28.02
+R0=10.73
+//calculations
+n1=m1/M1
+n2=m2/M2
+x1=n1/(n1+n2)
+x2=n2/(n1+n2)
+M=x1*M1+x2*M2
+R=1545/M
+V=(n1+n2)*R0*t/p
+rho=p/(R0*t)
+rho2=M*rho
+p1=x1*p
+p2=x2*p
+v1=x1*V
+v2=x2*V
+//results
+disp("part a")
+printf("Mole fractions of oxygen and nitrogen are %.3f and %.3f respectively",x1,x2)
+disp("part b")
+printf("Average molecular weight = %.1f ",M)
+disp("part c")
+printf("specific gas constant = %.4f lbf ft/lbm R",R)
+disp("part d")
+printf("volume of mixture = %.1f ft^3",V)
+printf("\n density of mixture is %.5f mole/ft^3 and %.3f lbm/ft^3",rho,rho2)
+disp("part e")
+printf("partial pressures of oxygen and nitrogen are %.2f psia and %.2f psia respectively" ,p1,p2)
+printf("\n partial volumes of oxygen and nitrogen are %.2f ft^3 and %.2f ft^3 respectively",v1,v2)
diff --git a/2519/CH11/EX11.6/Ex11_6.sce b/2519/CH11/EX11.6/Ex11_6.sce
new file mode 100755
index 000000000..1b12a8f38
--- /dev/null
+++ b/2519/CH11/EX11.6/Ex11_6.sce
@@ -0,0 +1,18 @@
+
+clc
+clear
+//Initialization of variables
+m1=5.28
+m2=1.28
+m3=23.52
+//calculations
+m=m1+m2+m3
+x1=m1/m
+x2=m2/m
+x3=m3/m
+C=12/44 *m1/ m
+O=(32/44 *m1 + m2)/m
+N=m3/m
+//results
+printf("From gravimetric analysis, co2 = %.1f percent , o2 = %.1f percent and n2 = %.1f percent",x1*100,x2*100,x3*100)
+printf("\n From ultimate analysis, co2 = %.2f percent , o2 = %.2f percent and n2 = %.2f percent",C*100,O*100,N*100)
diff --git a/2519/CH11/EX11.7/Ex11_7.sce b/2519/CH11/EX11.7/Ex11_7.sce
new file mode 100755
index 000000000..53d2ef92e
--- /dev/null
+++ b/2519/CH11/EX11.7/Ex11_7.sce
@@ -0,0 +1,23 @@
+clc
+clear
+//Initialization of variables
+x1=1/3
+n1=1
+n2=2
+x2=2/3
+p=12.7 //psia
+cp1=7.01 //Btu/mole R
+cp2=6.94 //Btu/mole R
+R0=1.986
+T2=460+86.6 //R
+T1=460 //R
+p0=14.7 //psia
+//calculations
+p1=x1*p
+p2=x2*p
+ds1= cp1*log(T2/T1) - R0*log(p1/p0)
+ds2= cp2*log(T2/T1) - R0*log(p2/p0)
+S=n1*ds1+n2*ds2
+//results
+printf("Entropy of mixture = %.2f Btu/R",S)
+printf("\n the answer given in textbook is wrong. please check using a calculator")
diff --git a/2519/CH11/EX11.8/Ex11_8.sce b/2519/CH11/EX11.8/Ex11_8.sce
new file mode 100755
index 000000000..8955f3cfe
--- /dev/null
+++ b/2519/CH11/EX11.8/Ex11_8.sce
@@ -0,0 +1,15 @@
+clc
+clear
+//Initialization of variables
+c1=4.97 //Btu/mol R
+c2=5.02 //Btu/mol R
+n1=2
+n2=1
+T1=86.6+460 //R
+T2=50+460 //R
+//calculations
+du=(n1*c1+n2*c2)*(T2-T1)
+ds=(n1*c1+n2*c2)*log(T2/T1)
+//results
+printf("Change in internal energy = %d Btu",du)
+printf("\n Change in entropy = %.3f Btu/R",ds)
diff --git a/2519/CH11/EX11.9/Ex11_9.sce b/2519/CH11/EX11.9/Ex11_9.sce
new file mode 100755
index 000000000..2b9307478
--- /dev/null
+++ b/2519/CH11/EX11.9/Ex11_9.sce
@@ -0,0 +1,21 @@
+clc
+clear
+//Initialization of variables
+n1=1
+n2=2
+c1=5.02
+c2=4.97
+t1=60 //F
+t2=100 //F
+R0=10.73
+p1=30 //psia
+p2=10 //psia
+//calcualtions
+t=(n1*c1*t1+n2*c2*t2)/(n1*c1+n2*c2)
+V1= n1*R0*(t1+460)/p1
+V2=n2*R0*(t2+460)/p2
+V=V1+V2
+pm=(n1+n2)*R0*(t+460)/V
+//results
+printf("Pressure of mixture = %.1f psia",pm)
+