summaryrefslogtreecommitdiff
path: root/1268/CH11/EX11.3
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /1268/CH11/EX11.3
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '1268/CH11/EX11.3')
-rw-r--r--1268/CH11/EX11.3/a_3.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/1268/CH11/EX11.3/a_3.sce b/1268/CH11/EX11.3/a_3.sce
new file mode 100644
index 000000000..940fa7e52
--- /dev/null
+++ b/1268/CH11/EX11.3/a_3.sce
@@ -0,0 +1,22 @@
+clear;
+disp("Example A.3")
+d=0.097 // diameter in m
+gradp= 16 // pressure gradient in N/m
+density=1000 // in kg/m^3
+tau=gradp*d/4
+u=(tau/density)^0.5
+y=0.02 // in m
+v=1e-6 // kinematic viscosity iin m^2/s
+ydash=y*u/v
+
+if(ydash>30) then
+ udash=2.5*log(ydash)+5.5
+ ugrad=2.5/ydash
+ ratio=2*y/d // ratio of ydash/rdash=y/r
+ x=(1-ratio)/ugrad-1
+ disp(x,"Turbulent viscosity to molecular viscosity at 2m is ")
+end
+rdash=d*u/(2*v)
+ydash=rdash/2
+x=(0.5*ydash/2.5)-1
+disp(x,"Turbulent viscosity to molecular viscosity at the point of maximum viscosity is ")