summaryrefslogtreecommitdiff
path: root/1460/CH12/EX12.9/12_9.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1460/CH12/EX12.9/12_9.sce
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 '1460/CH12/EX12.9/12_9.sce')
-rwxr-xr-x1460/CH12/EX12.9/12_9.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/1460/CH12/EX12.9/12_9.sce b/1460/CH12/EX12.9/12_9.sce
new file mode 100755
index 000000000..51f2593f7
--- /dev/null
+++ b/1460/CH12/EX12.9/12_9.sce
@@ -0,0 +1,21 @@
+clc
+//initialization of variables
+T1=80+460 //R
+T2=90+460 //R
+P=14.5 //lb/in^2
+cp=0.24
+//calculations
+disp("From steam tables,")
+hg2=1096.6
+hf3=48.02
+Pg2=0.5069
+hf2=hf3
+Pair=P-Pg2
+wg2=0.622*Pg2/Pair
+hgv1=1100.9
+wwv1=(cp*(T1-T2)+wg2*(hg2-hf3))/(hgv1-hf3)
+Pg=0.6982
+xi=wwv1*(P-Pg)/(Pg*0.622)
+//results
+printf("Specific humidity = %.4f lbm/lbm",wwv1)
+printf("\n relative humidity = %.2f",xi)