summaryrefslogtreecommitdiff
path: root/2510/CH14/EX14.1
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2510/CH14/EX14.1
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2510/CH14/EX14.1')
-rwxr-xr-x2510/CH14/EX14.1/Ex14_1.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/2510/CH14/EX14.1/Ex14_1.sce b/2510/CH14/EX14.1/Ex14_1.sce
new file mode 100755
index 000000000..2f623ae7a
--- /dev/null
+++ b/2510/CH14/EX14.1/Ex14_1.sce
@@ -0,0 +1,18 @@
+//Variable declaration:
+scfm = 20000.0 //Volumetric flow rate of air at standard conditions (scfm)
+H1 = 1170.0 //Enthalpy at 200°F (Btu/lbmol)
+H2 = 14970.0 //Enthalpy at 2000°F (Btu/lbmol)
+Cp = 7.53 //Average heat capacity (Btu/lbmol.°F)
+T1 = 200.0 //Initial temperature (°F)
+T2 = 2000.0 //Final temperature (°F)
+
+//Calculation:
+n = scfm/359.0 //Flow rate of air in a molar flow rate (lbmol/min)
+DH = H2 - H1 //Change in enthalpy (Btu/lbmol)
+DT = T2 - T1 //Change in temperature (°F)
+Q1 = n*DH //Heat transfer rate using enthalpy data (Btu/min)
+Q2 = n*Cp*DT //Heat transfer rate using the average heat capacity data (Btu/min)
+
+//Result:
+printf("The heat transfer rate using enthalpy data is : %.2f x 10^5 Btu/min.",Q1/10**5)
+printf("The heat transfer rate using the average heat capacity data is : %.2f x 10^5 Btu/min.",Q2/10**5)