polykin.transport.flow¤
DP_tube ¤
DP_tube(
Q: float,
D: float,
L: float,
rho: float,
mu: float,
er: float = 0.0,
) -> float
Calculate the pressure drop in a circular pipe for both laminar and turbulent flow.
This method acts as a convenience wrapper for
DP_Darcy_Weisbach
. It determines the flow regime
and estimates the Darcy friction factor using the appropriate equation. For
laminar flow, it applies \(f_D=64/Re\). For turbulent flow, it uses
fD_Haaland
. Finally, the method calls
DP_Darcy_Weisbach
with the correct parameters.
Tip
In laminar flow, \(\Delta P \propto Q/D^4\), while in turbulent flow, \(\Delta P \propto Q^2/D^5\).
PARAMETER | DESCRIPTION |
---|---|
Q
|
Volume flowrate (m³/s).
TYPE:
|
D
|
Diameter (m).
TYPE:
|
L
|
Length (m).
TYPE:
|
rho
|
Density (kg/m³).
TYPE:
|
mu
|
Viscosity (Pa·s).
TYPE:
|
er
|
Relative pipe roughness, \(\epsilon/D\). Only required for turbulent flow.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
float
|
Pressure drop (Pa). |
Source code in src/polykin/transport/flow.py
144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 |
|