diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3685/CH8/EX8.12/Ex8_12.sce | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '3685/CH8/EX8.12/Ex8_12.sce')
-rw-r--r-- | 3685/CH8/EX8.12/Ex8_12.sce | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/3685/CH8/EX8.12/Ex8_12.sce b/3685/CH8/EX8.12/Ex8_12.sce new file mode 100644 index 000000000..14bba15e2 --- /dev/null +++ b/3685/CH8/EX8.12/Ex8_12.sce @@ -0,0 +1,47 @@ +clc
+Qr = 500 // Heat release in kW
+Tr = 2000 // Fuel burning temperature in K
+T0 = 300 // Ambient temperature in K
+// Part (a)
+printf("\n Example 8.12")
+Qa = 480 // Energy absorption by furnace in kW
+Ta = 1000 // Furnace temperature in K
+n1a = (Qa/Qr) // first law efficiency
+n2a = n1a*(1-(T0/Ta))/(1-(T0/Tr)) //second law efficiency
+
+//The answers vary due to round off error
+printf(" \n\n PART (A)")
+printf("\n The first law efficiency is %d percent" ,n1a*100)
+printf("\n The second law efficiency is %d percent",n2a*100)
+
+// Part (b)
+Qb = 450 // Energy absorption in steam generation in kW
+Tb = 500// steam generation temperature in K
+n1b = (Qb/Qr)// first law efficiency
+n2b = n1b*(1-(T0/Tb))/(1-(T0/Tr))//second law efficiency
+printf(" \n\n PART (B)")
+printf("\n The first law efficiency is %d percent" ,n1b*100)
+printf("\n The second law efficiency is %f percent",n2b*100)
+// Part (c)
+Qc = 300 // Energy absorption in chemical process in kW
+Tc = 320 // chemical process temperature in K
+n1c = (Qc/Qr) // first law efficiency
+n2c = n1c*(1-(T0/Tc))/(1-(T0/Tr))//second law efficiency
+printf(" \n\n PART (C)")
+printf("\n The first law efficiency is %d percent",n1c*100)
+printf("\n The second law efficiency is %f percent" ,n2c*100)
+// Part (d)
+Qd = 450
+n1d = (Qd/Qr)
+n2a_= n1d*(1-(T0/Ta))/(1-(T0/Tr))
+n2b_= n1d*(1-(T0/Tb))/(1-(T0/Tr))
+n2c_= n1d*(1-(T0/Tc))/(1-(T0/Tr))
+printf(" \n\n PART (D)")
+printf("\n The First law efficiency for all the three cases would remain same and here is %d percent",n1d*100) //The answer provided in the textbook is wrong
+
+printf("\n The Second law efficiency of part (a) is %f percent",n2a_*100)
+
+printf("\n The Second law efficiency of part (b) is %f percent",n2b_*100)
+
+printf("\n The Second law efficiency of part (c) is %f percent",n2c_*100)
+
|