summaryrefslogtreecommitdiff
path: root/1808/CH5/EX5.32/Chapter5_Exampl32.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.32/Chapter5_Exampl32.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.32/Chapter5_Exampl32.sce')
-rw-r--r--1808/CH5/EX5.32/Chapter5_Exampl32.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/1808/CH5/EX5.32/Chapter5_Exampl32.sce b/1808/CH5/EX5.32/Chapter5_Exampl32.sce
new file mode 100644
index 000000000..0bec762df
--- /dev/null
+++ b/1808/CH5/EX5.32/Chapter5_Exampl32.sce
@@ -0,0 +1,22 @@
+clc
+clear
+//INPUT DATA
+v1=10;//volume of air handled in m^3/min
+n=1.4;//index of compression
+m=1;//mass of air
+R=0.287;//gas constant
+t1=293;//initial temperature in K
+p1=1;//pressure in bar
+P2=2;//discharge presuure in bar
+t21=298;//temperature in K
+pd=6;//discharge pressure
+
+//CALCULATIONS
+wd=(n/(n-1))*m*R*t1*(((P2/p1)^((n-1)/n))-1)+(n/(n-1))*R*t21*(((pd/P2)^((n-1)/n))-1);//work done in kJ/kg
+m=p1*10^2*v1/(R*t1);//mass flow rate in kg/min
+ip1=wd*(m/60);//indicated power in kW
+p2=sqrt(p1*pd);//Receiver pressure for best efficiency
+ip2=2*(n/(n-1))*(m/60)*R*t1*(((pd/p1)^((n-1)/(2*n)))-1);//Power required for optimum conditions
+
+//OUTPUT
+printf('(i)power required is %3.3f kW \n (ii)Receiver pressure for the best efficiency %3.4f bar \n (iii)Power required for optimum conditions is %3.3f kW ',ip1,p2,ip2)