summaryrefslogtreecommitdiff
path: root/1808/CH3/EX3.26/Chapter3_Exampl26.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /1808/CH3/EX3.26/Chapter3_Exampl26.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 '1808/CH3/EX3.26/Chapter3_Exampl26.sce')
-rw-r--r--1808/CH3/EX3.26/Chapter3_Exampl26.sce29
1 files changed, 29 insertions, 0 deletions
diff --git a/1808/CH3/EX3.26/Chapter3_Exampl26.sce b/1808/CH3/EX3.26/Chapter3_Exampl26.sce
new file mode 100644
index 000000000..c2fda1602
--- /dev/null
+++ b/1808/CH3/EX3.26/Chapter3_Exampl26.sce
@@ -0,0 +1,29 @@
+clc
+clear
+//INPUT DATA
+p1=120;//Pressure in kN/m^2
+t1=303;//temperature in K
+v1=0.0708;//specific volume in m^3/s
+v2=0.004165;//specific volume in m^3/s
+t3=1423;//temperature in K
+t4=1873;//temperature in K
+cp=1.005;//specific pressure
+cv=0.718;//specific volume
+R=0.287;//gas constant
+g=1.4;//constant
+
+//CALCULATIONS
+ro=t4/t3;//cutoff ratio
+Rc=v1/v2;//Compression ratio
+t2=t1*(Rc^(g-1));//temperature in K
+v45=(ro/Rc);//specific volume in m^3/s
+t5=t4*((v45)^(g-1));//temperature in K
+Qs=cv*(t3-t2)+cp*(t4-t3);//heat added in kJ/kg
+Qr=cv*(t5-t1);//heat rejected in kJ/kg
+nd=((Qs-Qr)/Qs)*100;//thermal efficiency in percentage
+
+//OUTPUT
+printf('(a)cutoff ratio %3.3f \n (b)Compression ratio is %3.1f \n (c)Heat added is %3.2f kJ/kg \n heat rejected is %3.2f kJ/kg \n (d)The thermal efficiency in %3.2f percentage',ro,Rc,Qs,Qr,nd)
+
+
+