summaryrefslogtreecommitdiff
path: root/1472/CH11
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1472/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 '1472/CH11')
-rwxr-xr-x1472/CH11/EX11.1/11_1.sce13
-rwxr-xr-x1472/CH11/EX11.2/11_2.sce11
-rwxr-xr-x1472/CH11/EX11.4/11_4.sce14
-rwxr-xr-x1472/CH11/EX11.5.a/11_5a.sce16
-rwxr-xr-x1472/CH11/EX11.5.b/11_5b.sce18
-rwxr-xr-x1472/CH11/EX11.5.c/11_5c.sce22
6 files changed, 94 insertions, 0 deletions
diff --git a/1472/CH11/EX11.1/11_1.sce b/1472/CH11/EX11.1/11_1.sce
new file mode 100755
index 000000000..cec65420e
--- /dev/null
+++ b/1472/CH11/EX11.1/11_1.sce
@@ -0,0 +1,13 @@
+clc
+//initialization of varaibles
+P1=15 //psia
+T1=80+460 //R
+dm=3 //lb
+T2=75+460 //R
+P2=25 //psia
+//calculations
+mratio=P1*T2/(P2*T1)
+m2=dm/(1-mratio)
+V2=m2*55.16*T2/(P2*144)
+//results
+printf("Volume of the apparatus = %.1f cu ft",V2)
diff --git a/1472/CH11/EX11.2/11_2.sce b/1472/CH11/EX11.2/11_2.sce
new file mode 100755
index 000000000..a507c7648
--- /dev/null
+++ b/1472/CH11/EX11.2/11_2.sce
@@ -0,0 +1,11 @@
+clc
+//initialization of varaibles
+R=48.3 //ft lb/lb R
+k=1.4
+//calculations
+dc=R/778
+cp=k*dc/(k-1)
+cv=cp/k
+//results
+printf("Specific heat at constant volume = %.3f B/lb R",cv)
+printf("Specific heat at constant pressure = %.3f B/lb R",cp)
diff --git a/1472/CH11/EX11.4/11_4.sce b/1472/CH11/EX11.4/11_4.sce
new file mode 100755
index 000000000..7753011e3
--- /dev/null
+++ b/1472/CH11/EX11.4/11_4.sce
@@ -0,0 +1,14 @@
+clc
+//initialization of varaibles
+P1=100 //psia
+P2=10 //psia
+T1=140 +460 //R
+g=1.4
+cp=0.248
+//calculations
+dh=g*55.16*T1*((P2/P1)^((g-1)/g) -1)/(g-1)
+T2=T1*(P2/P1)^((g-1)/g)
+dh2=cp*(T2-T1)
+//results
+printf("In method 1, Enthalpy = %d Btu/lb",dh*0.01286)
+printf("\n In method 2, Enthalpy = %.1f ft lb/lb",dh2)
diff --git a/1472/CH11/EX11.5.a/11_5a.sce b/1472/CH11/EX11.5.a/11_5a.sce
new file mode 100755
index 000000000..41c84ad48
--- /dev/null
+++ b/1472/CH11/EX11.5.a/11_5a.sce
@@ -0,0 +1,16 @@
+clc
+//initialization of varaibles
+P1=100 //psia
+T1=2000+460 //R
+P2=15 //psia
+g=1.4
+cp=0.24
+//calculations
+v1=53.34*T1/(P1*144)
+v2=53.34*T1*(P1/P2)^(1/g) /(P1*144)
+T2=T1*P2*v2/(P1*v1)
+dh=cp*(T2-T1)
+dv=v2-v1
+//results
+printf("Change in enthalpy = %d B/lb",dh)
+printf("\n Specific volume change = %.1f cu ft/lb",dv)
diff --git a/1472/CH11/EX11.5.b/11_5b.sce b/1472/CH11/EX11.5.b/11_5b.sce
new file mode 100755
index 000000000..653dd4560
--- /dev/null
+++ b/1472/CH11/EX11.5.b/11_5b.sce
@@ -0,0 +1,18 @@
+clc
+//initialization of varaibles
+P1=100 //psia
+T1=2000+460 //R
+P2=15 //psia
+g=1.4
+cp=0.276
+cv=0.207
+T2=1520 //R
+//calculations
+k=cp/cv
+v1=53.34*T1/(P1*144)
+v2=v1*(P1/P2)^(1/k)
+dh=cp*(T2-T1)
+dv=v2-v1
+//results
+printf("Enthalpy change = %d B/lb",dh)
+printf("\n Volume change = %.1f cu t/lb",dv)
diff --git a/1472/CH11/EX11.5.c/11_5c.sce b/1472/CH11/EX11.5.c/11_5c.sce
new file mode 100755
index 000000000..56beaa1e8
--- /dev/null
+++ b/1472/CH11/EX11.5.c/11_5c.sce
@@ -0,0 +1,22 @@
+clc
+//initialization of varaibles
+P1=100 //psia
+T1=2000+460 //R
+P2=15 //psia
+g=1.4
+cp=0.276
+cv=0.207
+T2=1520 //R
+//calculations
+h1=634.4
+pr1=407.3
+pr2=pr1*P2/P1
+disp("From table 1,")
+T2=1535 //R
+h2=378.44
+dh=h2-h1
+v2=53.34*T2/(P2*144)
+dv=v2-v1
+//results
+printf("Enthalpy change = %.2f B/lb",dh)
+printf("\n Volume change = %.1f cu ft/lb",dv)