diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /896/CH3/EX3.4/4.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '896/CH3/EX3.4/4.sce')
-rwxr-xr-x | 896/CH3/EX3.4/4.sce | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/896/CH3/EX3.4/4.sce b/896/CH3/EX3.4/4.sce new file mode 100755 index 000000000..777a0c05e --- /dev/null +++ b/896/CH3/EX3.4/4.sce @@ -0,0 +1,14 @@ +clc
+//Calculate vol. flow rate, mass flow rate and average vel of gasoline through pipe
+V=15;//gal volume of gasoline
+t=2;//min
+rho_water=62.3;//lbm/ft^3
+sg=0.72;//specific gravity
+q=(15/2)*(0.1336/60)//ft^3/s vol. flow rate
+printf("volumetric flow rate is %f ft^3/s\n",q);
+m=q*sg*rho_water//lbm/s
+printf("Mass flow rate is %f lbm/s\n",m);
+d=1;//in diameter of pipe
+a=((%pi)*d^2/4)/144;//ft^2 area of pipe
+v_avg=q/a//ft/s
+printf("The average velocity is %f ft/s",v_avg);
\ No newline at end of file |