summaryrefslogtreecommitdiff
path: root/1808/CH3/EX3.34/Chapter3_Exampl34.sce
diff options
context:
space:
mode:
Diffstat (limited to '1808/CH3/EX3.34/Chapter3_Exampl34.sce')
-rw-r--r--1808/CH3/EX3.34/Chapter3_Exampl34.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/1808/CH3/EX3.34/Chapter3_Exampl34.sce b/1808/CH3/EX3.34/Chapter3_Exampl34.sce
new file mode 100644
index 000000000..8d219cfdd
--- /dev/null
+++ b/1808/CH3/EX3.34/Chapter3_Exampl34.sce
@@ -0,0 +1,15 @@
+clc
+clear
+//INPUT DATA
+t1=300;//temperature in K
+t3=1300;//temperature in K
+g=1.4;//constant
+
+//CALCULATIONS
+Rpm=(t3/t1)^(g/(g-1));//Solution pressure ratio
+ng=(1-(t1/t3))*100;//thermal efficiency corresponds to maximum pressure ratio
+
+//OUTPUT
+printf('(i)Solution pressure ratio is %3.2f \n (ii)net workdone corresponds to maximum pressure ratio is zero \n (iii)thermal efficiency corresponds to maximum pressure ratio is %3.2f percntage \n (iv)work ratio is zero',Rpm,ng)
+
+