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 /1100/CH10/EX10.6 | |
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 '1100/CH10/EX10.6')
-rwxr-xr-x | 1100/CH10/EX10.6/10_6.sce | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/1100/CH10/EX10.6/10_6.sce b/1100/CH10/EX10.6/10_6.sce new file mode 100755 index 000000000..cb9c95d09 --- /dev/null +++ b/1100/CH10/EX10.6/10_6.sce @@ -0,0 +1,19 @@ + clc
+//initialisation of variables
+P= 15 //psia
+S= 1.7050 //Btu/lb R
+sg= 1.7549 //btu/lb R
+sfg= 1.4415 //Bru/lb R
+hg= 1150.8 //btu/lb
+hfg= 969.7 //Btu/lb
+vg= 26.29 //cu ft/lb
+vfg= 26.27 //cu ft/lb
+//CALCULATIONS
+n= (sg-sx)/sfg
+sx= sg-n*sfg
+hx= hg-n*hfg
+vx= vg-n*vfg
+//RESULTS
+printf ('Volume= %.2f cu ft/lb',vx)
+printf (' \n Entropy = %.2f Btu/lb R',sx)
+printf (' \n Enthalpy= %.1f Btu/lb',hx)
|