summaryrefslogtreecommitdiff
path: root/629/CH10/EX10.2
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /629/CH10/EX10.2
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 '629/CH10/EX10.2')
-rw-r--r--629/CH10/EX10.2/ex10_2.txt2
-rw-r--r--629/CH10/EX10.2/example10_2.sce16
2 files changed, 18 insertions, 0 deletions
diff --git a/629/CH10/EX10.2/ex10_2.txt b/629/CH10/EX10.2/ex10_2.txt
new file mode 100644
index 000000000..190dfc8f5
--- /dev/null
+++ b/629/CH10/EX10.2/ex10_2.txt
@@ -0,0 +1,2 @@
+
+The head loss per 100m length of the pipe = 9.84 m. \ No newline at end of file
diff --git a/629/CH10/EX10.2/example10_2.sce b/629/CH10/EX10.2/example10_2.sce
new file mode 100644
index 000000000..1b824367f
--- /dev/null
+++ b/629/CH10/EX10.2/example10_2.sce
@@ -0,0 +1,16 @@
+clear
+clc
+//Example 10.2 HEAD LOSS FOR LAMINAR FLOW
+g=9.81; //[m/s^2]
+L=100; //[m]
+D=0.15; //diameter[m]
+A=%pi*D^2/4 //area[m^2]
+Q=0.02 ;//[m^3/s]
+v=6*10^-4; //[m^2/s]
+V=Q/A //[m/s]
+//Reynolds number
+Re=V*D/v
+//Re<2000, the flow is laminar.
+//Head loss(laminar flow)
+hf=32*v*L*V/(g*D^2) //[m]
+printf("\nThe head loss per 100m length of the pipe = %.2f m.\n",hf) \ No newline at end of file