summaryrefslogtreecommitdiff
path: root/3685/CH16/EX16.10/Ex16_10.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3685/CH16/EX16.10/Ex16_10.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 '3685/CH16/EX16.10/Ex16_10.sce')
-rw-r--r--3685/CH16/EX16.10/Ex16_10.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/3685/CH16/EX16.10/Ex16_10.sce b/3685/CH16/EX16.10/Ex16_10.sce
new file mode 100644
index 000000000..537b5617b
--- /dev/null
+++ b/3685/CH16/EX16.10/Ex16_10.sce
@@ -0,0 +1,17 @@
+clc
+Hr1 = -249952 // For octane
+Hp1 = Hr1
+// Below values are calculated using value from table
+T2 = 1000 // Assumed reaction temperature in K
+Hp2 = -1226577 // Enthalpy of reaction products
+T3 = 1200 // Assumed reaction temperature in K
+Hp3 = 46537// Enthalpy of reaction products
+T4 = 1100// Assumed reaction temperature in K
+Hp4 = -595964 // Enthalpy of reaction products
+Hp = [Hp2 Hp3 Hp4]
+T = [T2 T3 T4]
+T1 = interpln([Hp; T],Hp1) // Interpolation to find temperature at Hp1
+printf("\n Example 16.10 \n")
+printf("\n The adiabatic flame temperature is %f K",T1)
+//The answer provided in the textbook is wrong
+