blob: bc45119cbdc828f50f01120517ea7918f3d1617b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
clc
clear
//Initialization of variables
z1=2 //ft
Q=0.1 //gal/min
alpha=2
g=32.2 //ft/s^2
L=4 //ft
D=1/96 //ft
//calculations
v2=Q/(7.48*60* %pi/4 *D^2)
hl=z1-alpha*v2^2 /(2*g)
Nr=64/hl *L/D *v2^2 /(2*g)
//results
printf("Reynolds number is %d. Hence the flow is laminar",Nr)
//The answer is a bit different due to rounding off error in textbook
|