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 /2837/CH20/EX20.2/Ex20_2.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 '2837/CH20/EX20.2/Ex20_2.sce')
-rwxr-xr-x | 2837/CH20/EX20.2/Ex20_2.sce | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/2837/CH20/EX20.2/Ex20_2.sce b/2837/CH20/EX20.2/Ex20_2.sce new file mode 100755 index 000000000..f3ab250ce --- /dev/null +++ b/2837/CH20/EX20.2/Ex20_2.sce @@ -0,0 +1,24 @@ +clc
+clear
+//Initalization of variables
+s2=1.5263
+sfg=1.8456
+sf=1.9782
+h2=1201.1 //Btu/lb
+hf=1106 //Btu/lb
+hfg=1036.3 //Btu/lb
+v=0.01616 //m^3/kg
+p2=250 //psia
+p1=1//psia
+J=778
+//calculations
+x3=1+ (s2-sf)/sfg
+h3=hf-(1-x3)*hfg
+h4=69.7
+Wp=v*144*(p2-p1)/J
+h1=h4+Wp
+etat=((h2-h3)-Wp)/(h2-h1) *100
+eta2=(h2-h3)/(h2-h4)*100
+//results
+printf("\n In case 1, Efficieny = %.2f percent",etat)
+printf("\n In case 2, Efficieny = %.2f percent",eta2)
|