summaryrefslogtreecommitdiff
path: root/1808/CH5/EX5.12/Chapter5_Exampl12.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /1808/CH5/EX5.12/Chapter5_Exampl12.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '1808/CH5/EX5.12/Chapter5_Exampl12.sce')
-rw-r--r--1808/CH5/EX5.12/Chapter5_Exampl12.sce25
1 files changed, 25 insertions, 0 deletions
diff --git a/1808/CH5/EX5.12/Chapter5_Exampl12.sce b/1808/CH5/EX5.12/Chapter5_Exampl12.sce
new file mode 100644
index 000000000..2d07c718a
--- /dev/null
+++ b/1808/CH5/EX5.12/Chapter5_Exampl12.sce
@@ -0,0 +1,25 @@
+clc
+clear
+//INPUT DATA
+pd=8;//delivery pressure in bar
+p1=1;//pressure in bar
+n=1.3;//for single compression
+m=2;//mass flow rate
+R=0.287;//gas constant
+t1=293;//temperature in K
+N=2;//number of stages
+t51=303;//temperature in K
+
+//CALCULATIONS
+wd1=(n/(n-1))*(m/60)*R*t1*(((pd/p1)^((n-1)/n))-1);//work done in single stage compression
+wd2=N*(n/(n-1))*(m/60)*R*t1*(((pd/p1)^((n-1)/(N*n)))-1);//work done in two stage compression
+wd3=(n/(n-1))*(m/60)*R*(((2*(t1*t51)^(1/2))*((pd/p1)^((n-1)/(n*N))))-(t1+t51));//work done in two stage compression with imperfect inter cooling
+wd4=(m/60)*R*t1*log(pd/p1);//single stage compression in kW
+p2=((wd1-wd2)/wd1)*100;//Percentage saving in 1st and 2nd stage
+p3=((wd1-wd3)/wd1)*100;//Percentage saving in 1st and 3rd stage
+p4=((wd1-wd4)/wd1)*100;//Percentage saving in 1st and 4th stage
+
+//OUTPUT
+printf('(i)work done in single stage compression is %3.3f kW \n (ii)work done in two stage compression is %3.4f kW \n (iii)work done in two stage compression with imperfect inter cooling is %3.4f kW \n (iv)single stage compression workdone is %3.4f kW \n ',wd1,wd2,wd3,wd4 )
+
+printf('Percentage saving in 1st and 2nd stage %3.3f percentage \n Percentage saving in 1st and 3rd stage %3.3f percentage \n Percentage saving in 1st and 4th stage %3.3f percentage \n',p2,p3,p4 )