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.4/10_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 '1100/CH10/EX10.4/10_4.sce')
-rwxr-xr-x | 1100/CH10/EX10.4/10_4.sce | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/1100/CH10/EX10.4/10_4.sce b/1100/CH10/EX10.4/10_4.sce new file mode 100755 index 000000000..bafcfb4a1 --- /dev/null +++ b/1100/CH10/EX10.4/10_4.sce @@ -0,0 +1,18 @@ +clc
+//initialisation of variables
+P= 100 //psia
+n= 40
+vf= 0.01774 //cu ft/lb
+vg= 4.432 //cu ft/lb
+hf= 298.4 //Btu/lb
+hfg= 888.8 //Btu/lb
+sg= 1.6026 //Btu/lb R
+sfg= 1.1286 //Btu/lb R
+//CALCULATIONS
+vx= (n/100)*vf+(1-(n/100))*vg
+hx= hf+(1-(n/100))*hfg
+sx= sg-(n/100)*sfg
+//RESULTS
+printf ('Volume= %.2f cu ft/lb',vx)
+printf (' \n Entropy = %.2f Btu/lb R',sx)
+printf (' \n Enthalpy= %.1f Btu/lb',hx)
|