summaryrefslogtreecommitdiff
path: root/1808/CH5/EX5.25/Chapter5_Exampl25.sce
diff options
context:
space:
mode:
Diffstat (limited to '1808/CH5/EX5.25/Chapter5_Exampl25.sce')
-rw-r--r--1808/CH5/EX5.25/Chapter5_Exampl25.sce26
1 files changed, 26 insertions, 0 deletions
diff --git a/1808/CH5/EX5.25/Chapter5_Exampl25.sce b/1808/CH5/EX5.25/Chapter5_Exampl25.sce
new file mode 100644
index 000000000..8bea75c3f
--- /dev/null
+++ b/1808/CH5/EX5.25/Chapter5_Exampl25.sce
@@ -0,0 +1,26 @@
+clc
+clear
+//INPUT DATA
+n=1.4;//index of compression
+m=0.1436;//mass of air
+R=0.287;//gas constant
+t1=283;//temperature in K
+t2=303;//temperature in K
+p1=1;//pressure in bar
+pd=30;//delivery pressure in bar
+v1=0.1167;//volume in m^3/s
+nm=0.9;//mechanical efficiency in percentage
+
+//CALCULATIONS
+ip=(n/(n-1))*m*R*((2*sqrt(t1*t2)*((pd/p1)^((n-1)/(2*n))))-(t1+t2));//power required for a compound air compressor
+bp=ip/nm;//Brake power in kW
+
+//OUTPUT
+printf('(i)power required for a compound air compressor %3.4f kW \n (ii)Brake power is %3.2f kW',ip,bp)
+
+
+
+
+
+
+