summaryrefslogtreecommitdiff
path: root/3511/CH6/EX6.10/Ex6_10.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3511/CH6/EX6.10/Ex6_10.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 '3511/CH6/EX6.10/Ex6_10.sce')
-rw-r--r--3511/CH6/EX6.10/Ex6_10.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/3511/CH6/EX6.10/Ex6_10.sce b/3511/CH6/EX6.10/Ex6_10.sce
new file mode 100644
index 000000000..c50ed2574
--- /dev/null
+++ b/3511/CH6/EX6.10/Ex6_10.sce
@@ -0,0 +1,16 @@
+clc;
+eff_C=0.85; // Isentropic efficiency of the compressor
+rp=4; // Pressure ratio
+r=1.4; // specific heat ratio
+eff_pc=(((r-1)/r)*log (rp))/log (((rp^((r-1)/r)-1)/eff_C)+1);
+disp ("%",eff_pc*100,"Polytropic efficiency = ");
+disp ("variation of compressor efficiency with compression ratio is shown in window1");
+xset('window',1);
+function eff_c=f(rc)
+ eff_c=(rc^0.286-1)/(rc^0.326-1);
+endfunction
+rc=linspace (2,10,4);
+plot(rc,f);
+title ("variation of compressor efficiency with compression ratio","fontsize",4,"color","blue");
+xlabel("compression ratio (rc)","fontsize",4,"color","blue");
+ylabel ("Compressor efficiency","fontsize",4,"color","blue");