summaryrefslogtreecommitdiff
path: root/2417/CH4/EX4.5/Ex4_5.sce
diff options
context:
space:
mode:
Diffstat (limited to '2417/CH4/EX4.5/Ex4_5.sce')
-rwxr-xr-x2417/CH4/EX4.5/Ex4_5.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/2417/CH4/EX4.5/Ex4_5.sce b/2417/CH4/EX4.5/Ex4_5.sce
new file mode 100755
index 000000000..43e9cc1dd
--- /dev/null
+++ b/2417/CH4/EX4.5/Ex4_5.sce
@@ -0,0 +1,22 @@
+//scilab 5.4.1
+clear;
+clc;
+printf("\t\t\tProblem Number 4.5\n\n\n");
+// Chapter 4 : The Second Law Of Thermodynamics
+// Problem 4.5 (page no. 151)
+// Solution
+
+t1=700; //Source temperature //Unit:Celcius
+t2=20; //Sink temperature //Unit:Celcius
+//converting in F
+T1=t1+273; //Source temperature //Unit:R
+T2=t2+273; //Sink temperature //Unit:R
+n=(T1-T2)/T1*100; //Efficiency
+printf("Efficiency is %f percentage\n",n);//(in %)
+output=65;//in hp //Given
+work=output*0.746;//(unit kJ/s) // 1 hp = 746 W
+printf("Work is %f kJ/s\n",work);
+Qin=work/(n/100);//(unit kJ/s) //Qin=heat added to the cycle
+printf("Heat added to the cycle is %f kJ/s \n",Qin);
+Qr=Qin*(1-(n/100));//(unit kJ/s) //Qr=heat rejected by the cycle
+printf("Heat rejected by the cycle is %f kJ/s \n",Qr);