summaryrefslogtreecommitdiff
path: root/629/CH10/EX10.2/example10_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '629/CH10/EX10.2/example10_2.sce')
-rw-r--r--629/CH10/EX10.2/example10_2.sce16
1 files changed, 16 insertions, 0 deletions
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