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/CH10/EX10.7/ex10_7.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/CH10/EX10.7/ex10_7.sce')
-rwxr-xr-x | 914/CH10/EX10.7/ex10_7.sce | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/914/CH10/EX10.7/ex10_7.sce b/914/CH10/EX10.7/ex10_7.sce new file mode 100755 index 000000000..0bf79aaa2 --- /dev/null +++ b/914/CH10/EX10.7/ex10_7.sce @@ -0,0 +1,22 @@ +clc;
+warning("off");
+printf("\n\n example10.7 - pg422");
+// given
+L=300; //[m] - length of pipe
+d=0.06; //[m] - inside diameter
+p=1000; //[kg/m^3] - density
+mu=1*10^-3; //[kg/m*sec] - viscosity
+Nre=[10^4 10^5];
+U=(Nre*mu)/(d*p);
+velocityhead=(U^2)/2;
+N=(L/d)/45; // no of velocity heads
+deltap=p*N*(velocityhead);
+for i=1:2
+ disp(Nre(i),"Nre=");
+ printf("\n\n velocity head =%f m^2/sec^2",velocityhead(i));
+ printf("\n\n -deltap = %f kPa = %f psi",deltap(i)*10^-3,deltap(i)*1.453*10^-4);
+end
+
+
+
+
|