summaryrefslogtreecommitdiff
path: root/3511/CH8/EX8.4
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3511/CH8/EX8.4
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 '3511/CH8/EX8.4')
-rw-r--r--3511/CH8/EX8.4/Ex8_4.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/3511/CH8/EX8.4/Ex8_4.sce b/3511/CH8/EX8.4/Ex8_4.sce
new file mode 100644
index 000000000..ab17942fb
--- /dev/null
+++ b/3511/CH8/EX8.4/Ex8_4.sce
@@ -0,0 +1,22 @@
+clc;
+T01=0+273; // Inlet gas temperature in kelvin
+p01=0.7; // Inlet pressure in bar
+p02=1.05; // Delivery pressure in bar
+eff_c=0.83; // Compressor efficiency
+Cp=1.005;// Specific heat at constant pressure in kJ/kg K
+Cv=0.717;// Specific heat at constant volume in kJ/kg K
+r=1.4; // Specific heat ratio
+
+T_02=T01*(p02/p01)^((r-1)/r);
+T02=T01+(T_02-T01)/eff_c; // Final temperature of the gas
+Wc=Cp*(T02-T01); // Work of compression
+
+// With additional compressor
+T_03=T02*(p02/p01)^((r-1)/r);
+T03=T02+(T_03-T02)/eff_c;
+T_03=T01*(p02/p01)^(2*(r-1)/r);
+eff_overall=(T_03-T01)/(T03-T01);
+
+disp ("K",T02,"Final temperature of the gas = ");
+disp ("kJ/kg",Wc," Work of compression = ");
+disp ("%",eff_overall*100,"Overall efficiency = ");