summaryrefslogtreecommitdiff
path: root/3821/CH14/EX14.4/Example14_4.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3821/CH14/EX14.4/Example14_4.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 '3821/CH14/EX14.4/Example14_4.sce')
-rw-r--r--3821/CH14/EX14.4/Example14_4.sce31
1 files changed, 31 insertions, 0 deletions
diff --git a/3821/CH14/EX14.4/Example14_4.sce b/3821/CH14/EX14.4/Example14_4.sce
new file mode 100644
index 000000000..fa5686b73
--- /dev/null
+++ b/3821/CH14/EX14.4/Example14_4.sce
@@ -0,0 +1,31 @@
+////Chapter No 14 Air Standard Cycles
+////Example No 14.4 Page No 304
+///Find Heat supplied process
+//input data
+clc;
+clear;
+T2=377+273; //Carnot cycle temperature in bar
+P2=20*10^5; //Carnot cycle pressure in bar
+V2=1;
+V1=5;
+V3=2;
+//Consider air as the working fluid therefore
+R=0.287; //In KJ/Kg K
+Cp=1.005; //In KJ/Kg K
+Cv=0.718; //In KJ/Kg K
+K=1.4;
+gamma1=1.4;
+
+//Calculation
+T1=T2*((V2/V1)^(gamma1-1)); //Minimum temp in degree celsius
+Qs=R*T2*log(V3/V2); //Heat supplied process in KJ/Kg
+QR=R*T1*log((V1/V2)*(V2/V3)*((T2/T1)^(1/(gamma1-1)))); //Heat Rejected Process in KJ/Kg
+etath=(1-(T1/T2))*100; //Thermal Effeiciency of the carnot cycle in %
+
+
+
+//Output
+printf('Minimum temp= %f degree celsius \n',T1);
+printf('Heat supplied process= %f KJ/Kg \n',Qs);
+printf('Heat Rejected Process= %f KJ/Kg \n',QR);
+printf('Thermal Effeiciency of the carnot cycle=%f percent \n',etath);