summaryrefslogtreecommitdiff
path: root/3685/CH14/EX14.12/Ex14_12.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3685/CH14/EX14.12/Ex14_12.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 '3685/CH14/EX14.12/Ex14_12.sce')
-rw-r--r--3685/CH14/EX14.12/Ex14_12.sce39
1 files changed, 39 insertions, 0 deletions
diff --git a/3685/CH14/EX14.12/Ex14_12.sce b/3685/CH14/EX14.12/Ex14_12.sce
new file mode 100644
index 000000000..556e59dc3
--- /dev/null
+++ b/3685/CH14/EX14.12/Ex14_12.sce
@@ -0,0 +1,39 @@
+clear
+clc
+// Given that
+L = 60 // Cooling load in kW
+p = 1 // Pressure in bar
+t = 20 // Temperature in degree celsius
+v = 900 // Speed of aircraft in km/h
+p1 = 0.35 // Pressure in bar
+T1 = 255 // Temperature in K
+nd = .85 // Diffuser efficiency
+rp = 6 // Pressure ratio of compressor
+nc = .85 // Copressor efficiency
+E = 0.9 // Effectiveness of air cooler
+nt = 0.88 // Turbine efficiency
+p_ = 0.08 // Pressure drop in air cooler in bar
+p5 = 1.08 // Pressure in bar
+cp = 1.005 // Heat capacity of air at constant pressure in kJ/kgK
+gama = 1.4 // Ratio of heat capacities of air
+printf("\n Example 14.12\n")
+V = v*(5/18)
+T2_ = T1 + (V^2)/(2*cp*1000)
+T2 = T2_
+p2_ = p1*((T2_/T1)^((gama/(gama-1))))
+p2 = p1 + nd*(p2_-p1)
+p3 = rp*p2
+T3_ = T2*((p3/p2)^((gama-1)/gama))
+T3 = T2 + (T3_-T2)/nc
+P = cp*(T3-T2)
+p4 = p3 - p_
+T4 = T3 - E*(T3-T2)
+T5_ = T4/((p4/p5)^(.286))
+T5 = T4 - (T4-T5_)/nt
+RE = cp*(t+273 - T5)
+m = L/51.5
+Pr = m*P
+COP = L/Pr
+printf("\n Mass flow rate of air flowing through the cooling system is %f kg/s",m)
+printf("\n COP is %f ",COP)
+//The answers vary due to round off error