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 /858/CH4/EX4.13/example_13.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 '858/CH4/EX4.13/example_13.sce')
-rwxr-xr-x | 858/CH4/EX4.13/example_13.sce | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/858/CH4/EX4.13/example_13.sce b/858/CH4/EX4.13/example_13.sce new file mode 100755 index 000000000..6d0973283 --- /dev/null +++ b/858/CH4/EX4.13/example_13.sce @@ -0,0 +1,22 @@ +clc
+clear
+printf("example 4.13 page number 146\n\n")
+
+//to find the tube length
+density=1000 //in kg/m3
+viscosity=1*10^-3 //in Pa s
+P=100*1000 //in Pa
+
+vdP=P/density;
+
+Q=2.5*10^-3/(24*3600)
+A=3.14*(0.0005)^2/4;
+u=Q/A;
+printf("u = %f m/s",u)
+
+Re=density*u*0.0005/viscosity;
+printf("\n\nRe = %f",Re)
+
+//F=18.86*L
+L=(-u^2+vdP)/18.86;
+printf("\n\nL = %f m",L)
|