Try this one and when done convert it from metric shiteatinggrin or just do the bucket test....
"Data you need if it is exclusively within 1 pipe:
L: Length: (m)
D: Diameter: (m)
A: cross section area = pi*D^2/4 if circular
e: Pipe roughness: (m)
You also need to know details of all local loss components (valves, elbows, tees, unions, return bends, entrances/exits, etc.) as well as any substantial altitude changes.
Fluid properties:
rho: density (kg/m^3)
mu: dynamic viscosity (kg*m/sec)
If it is exclusively within 1 horizontal pipe with no local losses:
Find Reynolds number to classify flow
Re = rho*v*D/mu
To find velocity, use
v = m_dot/(rho*v*A)
Ultimately, Reynolds number for circular pipes. Since you do not know the flow rate, make a guess and iterate.
Re = 4*m_dot/(Pi*D*mu)
If Re < 2100, it is laminar. Otherwise it is turbulent.
If it is laminar, find friction factor f, by (only for circular pipes)
f = 64/Re
If turbulent, use the Haaland equation to find f:
http://en.wikipedia.org/wiki/Darcy_frict…
Once you've found f, find the pressure differential by:
dP = f*L/D*(rho*v^2/2)
Flatten this formula to
dP = 8*f*L*m_dot^2/(D^5*rho*Pi^2)
If dP equals the desired pressure drop, you are done, otherwise, iterate by guessing a different m_dot until you get a balance."