blob: c4313952786313cba152013ab3e236f330f742a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
clc
//initialisation of variables
f=5//cm
d=10//cm
r=150//liters
p=4//in
A2=7.84*10^-3//m^2
//CALCULATIONS
A=((%pi)*(f*10^-2)^2)/p//m^2
V1=(r*10^-3)*(1/60)/A//m/s
V2=(A*V1)/A2//m/s
//RESULTS
printf('The velocity of the fluid in both pipes=% f m/s',V2)
|