summaryrefslogtreecommitdiff
path: root/2510/CH18/EX18.19/Ex18_19.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2510/CH18/EX18.19/Ex18_19.sce
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/CH18/EX18.19/Ex18_19.sce')
-rwxr-xr-x2510/CH18/EX18.19/Ex18_19.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/2510/CH18/EX18.19/Ex18_19.sce b/2510/CH18/EX18.19/Ex18_19.sce
new file mode 100755
index 000000000..5664a05fb
--- /dev/null
+++ b/2510/CH18/EX18.19/Ex18_19.sce
@@ -0,0 +1,20 @@
+//Variable declaration:
+//From example 18.19:
+m1 = 144200 //Mass flow rate of flue gas (lb/h)
+m2 = 541700 //Mass flow rate of air (lb/h)
+R = 0.73 //Universal gas constant (psia.ft^3/lbmol. R)
+P = 1 //Absolute pressure (psia)
+T = 1020 //Absolute temperature ( R)
+MW = 29 //Molecular weight of air
+t = 1.5 //Residence time (s)
+
+//Calculation:
+m = m1+m2 //Total mass flow rate of the gas (lb/h)
+q = m*R*T/(P*MW) //Volumetric flow at 560 F (ft^3/h)
+V = q*t/3600 //Volume of tank (ft^3)
+m = round(m*10**-2)/10**-2
+
+//Result:
+printf("The total mass flow rate of the gas is : %f lb/h .",m)
+printf("The volumetric flow at 560 F is : %.2f x 10^7 ft^3/h",q/10**7)
+printf("The volume of tank is : %.0f ft^3 .",V)