summaryrefslogtreecommitdiff
path: root/680/CH2/EX2.09/2_09.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /680/CH2/EX2.09/2_09.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '680/CH2/EX2.09/2_09.sce')
-rwxr-xr-x680/CH2/EX2.09/2_09.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/680/CH2/EX2.09/2_09.sce b/680/CH2/EX2.09/2_09.sce
new file mode 100755
index 000000000..7fac1f612
--- /dev/null
+++ b/680/CH2/EX2.09/2_09.sce
@@ -0,0 +1,17 @@
+//Problem 2.09:
+
+//initializing the variables:
+D = 5/12; // in ft
+p = 50; // in lb/ft3
+v = 10; // in fps
+u = 0.65*6.720E-4 ; //in lb/ft.sec
+
+//calculation:
+Re = D*p*v/u
+if (Re>2100) then
+ s = 'turbulent';
+else
+ s = 'laminar';
+end
+printf("\n\nResult\n\n")
+printf("\n Reynolds number for a fluid flowing is %.2E and the flow is %s\n",Re, s)