polykin.transport.flow¤
DP_Hagen_Poiseuille ¤
DP_Hagen_Poiseuille(
Q: float, D: float, L: float, mu: float
) -> float
Calculate the pressure drop in a pipe using the Hagen-Poiseuille equation.
In laminar flow, the pressure drop in a circular pipe is given by:
where \(D\) is the pipe diameter, \(L\) is the pipe length, \(Q\) is the volume flowrate, and \(\mu\) is the fluid viscosity.
PARAMETER | DESCRIPTION |
---|---|
Q
|
Volume flowrate (m³/s).
TYPE:
|
D
|
Diameter (m).
TYPE:
|
L
|
Length (m).
TYPE:
|
mu
|
Viscosity (Pa·s).
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
float
|
Pressure drop (Pa). |
Examples:
Calculate the pressure drop for a polymer solution (viscosity: 10 Pa·s) flowing at 1 L/s through 5 m of smooth pipe with a 50 mm internal diameter.
>>> from polykin.transport import DP_Hagen_Poiseuille
>>> from math import pi
>>> Q = 1e-3 # m³/s
>>> D = 50e-3 # m
>>> L = 5. # m
>>> mu = 10. # Pa·s
>>> rho = 1e3 # kg/m³
>>> v = 4*Q/(pi*D**2)
>>> Re = rho*v*D/mu
>>> print(f"Re = {Re:.1e}")
Re = 2.5e+00
>>> DP = DP_Hagen_Poiseuille(Q, D, L, mu)
>>> print(f"DP = {DP:.1e} Pa")
DP = 3.3e+05 Pa
Source code in src/polykin/transport/flow.py
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
|