summaryrefslogtreecommitdiff
path: root/1808/CH3/EX3.36/Chapter3_Exampl36.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.36/Chapter3_Exampl36.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.36/Chapter3_Exampl36.sce')
-rw-r--r--1808/CH3/EX3.36/Chapter3_Exampl36.sce29
1 files changed, 29 insertions, 0 deletions
diff --git a/1808/CH3/EX3.36/Chapter3_Exampl36.sce b/1808/CH3/EX3.36/Chapter3_Exampl36.sce
new file mode 100644
index 000000000..d5b9f2ae0
--- /dev/null
+++ b/1808/CH3/EX3.36/Chapter3_Exampl36.sce
@@ -0,0 +1,29 @@
+clc
+clear
+//INPUT DATA
+cp=1.005;//specific pressure
+cv=0.718;//specific volume
+R=0.287;//gas constant
+p1=100;//Pressure in kPa
+t1=300;//temperature in K
+g=1.35//constant
+t3=1000;//temperature in K
+nc=0.85;//compressor efficiency in percentage
+nt=0.9;//Thermal efficiency in percentage
+
+
+//CALCULATIONS
+Rp=(t3/t1)^(g/(g-1));//maximum pressure ratio
+Rpo=sqrt(Rp*nc*nt);//Pressure ratio for maximum work
+t2=t1*(Rpo)^((g-1)/g);//temperature in K
+t21=t1+((t2-t1)/nc);//temperature in K
+t4=t3/(Rpo^((g-1)/g));//temperature in K
+t41=t3-(nt*(t3-t4));//temperature in K
+nbt=(((t3-t41)-(t21-t1))/(t3-t21))*100;//Thermal efficiency in percentage
+
+//OUTPUT
+printf('(i)Pressure ratio for maximum work is %3.2f \n (ii)Thermal efficiency is %3.2f percentage ',Rpo,nbt)
+
+
+
+