summaryrefslogtreecommitdiff
path: root/572/CH14/EX14.10/c14_10.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /572/CH14/EX14.10/c14_10.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 '572/CH14/EX14.10/c14_10.sce')
-rwxr-xr-x572/CH14/EX14.10/c14_10.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/572/CH14/EX14.10/c14_10.sce b/572/CH14/EX14.10/c14_10.sce
new file mode 100755
index 000000000..ffb26f166
--- /dev/null
+++ b/572/CH14/EX14.10/c14_10.sce
@@ -0,0 +1,18 @@
+//(14.10) A closed system at a temperature of 20C and a pressure of 1 bar consists of a pure liquid water phase in equilibrium with a vapor phase composed of water vapor and dry air. Determine the departure, in percent, of the partial pressure of the water vapor from the saturation pressure of water at 20C.
+
+
+
+//solution
+//With data from Table A-2 at 20C,
+vf = 1.0018e-3 //in m^3/kg
+psat = .0239 //in bar
+p = 1 //in bar
+T = 293.15 //in kelvin
+
+Rbar = 8.314 //universal gas constant in SI units
+M = 18.02 //molat mass of water in kg/kmol
+
+pvbypsat = %e^(vf*(p-psat)*10^5/[(1000*Rbar/M)*T])
+
+percent = (pvbypsat-1)*100
+printf('the departure, in percent, of the partial pressure of the water vapor from the saturation pressure of water at 20 is: %f',percent) \ No newline at end of file