summaryrefslogtreecommitdiff
path: root/1808/CH3/EX3.36
diff options
context:
space:
mode:
Diffstat (limited to '1808/CH3/EX3.36')
-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)
+
+
+
+