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 /914/CH6/EX6.9/ex6_9.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 '914/CH6/EX6.9/ex6_9.sce')
-rwxr-xr-x | 914/CH6/EX6.9/ex6_9.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/914/CH6/EX6.9/ex6_9.sce b/914/CH6/EX6.9/ex6_9.sce new file mode 100755 index 000000000..e4c5b5c05 --- /dev/null +++ b/914/CH6/EX6.9/ex6_9.sce @@ -0,0 +1,16 @@ +clc;
+warning("off");
+printf("\n\n example6.9 - pg258");
+// given
+spg=0.84;
+p=0.84*62.4; //[lbf/ft^3] - density
+dP=80*144; //[lbf/ft^2] - pressure
+dz=2000; //[ft] - length of pipe
+gc=32.174; //[(lbm*ft)/(lbf*sec^2)] - gravitational conversion constant
+dpbydz=-dP/dz;
+do=2.067/12; //[ft]
+U=2000*(1/24)*(1/3600)*(42)*(1/7.48)*(1/0.02330);
+// using the formula f=((do/2)*(-dp/dz)*gc)/(p*(U)^2)
+f=((do/2)*(-dpbydz)*gc)/(p*(U)^2)
+disp(f,"f=");
+
|