diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2015/CH7/EX7.4/7_4.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '2015/CH7/EX7.4/7_4.sce')
-rwxr-xr-x | 2015/CH7/EX7.4/7_4.sce | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/2015/CH7/EX7.4/7_4.sce b/2015/CH7/EX7.4/7_4.sce new file mode 100755 index 000000000..7ba43ad56 --- /dev/null +++ b/2015/CH7/EX7.4/7_4.sce @@ -0,0 +1,19 @@ +clc
+//initialisation of variables
+ps=0.035636 //pressure in bar
+pvw=0.018168 //pressure in bar
+p=1.01325 //pressure in bar
+a=6.6*10^-4
+w=0.00667
+td=27 //temparature in degrees
+tw=16 //temparature in degrees
+//CALCULATIONS
+pv=pvw-(p*a*(td-tw))
+w=0.622*(pv/(p-pv))
+phi=pv/ps
+h=(1.005*td+w*(2500+1.86*td))
+//RESULTS
+printf('humidity ratio is %2fkg/kg of da',w)
+printf('\nrelative humidity is %2f',phi)
+disp('dew point temparature is 8 degrees')
+printf('\nenthalphy of moist air is %2fkg/kg of da',h)
|